mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
14 lines
375 B
Python
14 lines
375 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
__version__ = "0.2.5"
|
|
|
|
# Add the vendor directory to sys.path as a fallback.
|
|
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.append(str(vendor_dir))
|