mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
Major fixes: - Use system onionshare-cli binary directly (subprocess/execvp) instead of importing it as a Python module, avoiding pkg_resources crashes in pipx venvs - get_servers() now only searches DATA_DIR/host (single source of truth); bundled example sites are seeded on first manage run then fully user-owned - delete_server() now permanently removes sites (no ghost re-appearance) - DATA_DIR defaults to ~/ instead of cwd, preventing sites from scattering across directories - Fix attachment URL logic that incorrectly overwrote valid onion URLs Co-Authored-By: Claude Opus 4.6 <[email protected]>
13 lines
498 B
Python
13 lines
498 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
__version__ = "0.2.16"
|
|
|
|
# Add the vendor directory to sys.path ONLY for PyInstaller (frozen) builds.
|
|
# For pip/pipx installs the system/venv packages are correct and the vendored
|
|
# copies are incomplete (missing data files), so we must not shadow them.
|
|
if getattr(sys, 'frozen', False):
|
|
vendor_dir = Path(sys._MEIPASS).joinpath("voxvera", "vendor")
|
|
if vendor_dir.exists() and str(vendor_dir) not in sys.path:
|
|
sys.path.insert(0, str(vendor_dir))
|