mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-11-02 20:50:40 +00:00
17 lines
531 B
Python
17 lines
531 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
__version__ = "0.2.10"
|
|
|
|
# Add the vendor directory to sys.path. We prepend it to ensure our bundled
|
|
# dependencies take priority over potentially incompatible system packages
|
|
# (e.g. Flask/Werkzeug version mismatches on Debian).
|
|
if getattr(sys, 'frozen', False):
|
|
vendor_dir = Path(sys._MEIPASS).joinpath("voxvera", "vendor")
|
|
else:
|
|
vendor_dir = Path(__file__).parent / "vendor"
|
|
|
|
if vendor_dir.exists():
|
|
if str(vendor_dir) not in sys.path:
|
|
sys.path.insert(0, str(vendor_dir))
|