mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 07:52:03 +00:00
Add vendor directory to sys.path
This commit is contained in:
1 parent
9d5593a1f5
commit
5826e18189
1 file changed
+7
-1
+7
-1
@@ -1,7 +1,13 @@
|
||||
# main.py
|
||||
import os
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
# Add bundled vendor directory to sys.path so bundled dependencies can be imported
|
||||
vendor_dir = Path(__file__).parent / "vendor"
|
||||
if vendor_dir.exists():
|
||||
sys.path.insert(0, str(vendor_dir))
|
||||
|
||||
import os
|
||||
import logging
|
||||
import signal
|
||||
import getpass
|
||||
|
||||
Reference in new issue
Block a user