Files
cmshoppe/main.py
T

23 lines
451 B
Python
Raw Normal View History

2026-06-26 17:24:23 +08:00
#!/usr/bin/env python3
"""cmshopee application entry point."""
import os
import sys
2026-07-03 09:26:27 +08:00
def _project_root():
if getattr(sys, "frozen", False):
return os.path.dirname(os.path.abspath(sys.executable))
return os.path.dirname(os.path.abspath(__file__))
PROJECT_ROOT = _project_root()
2026-06-26 17:24:23 +08:00
if PROJECT_ROOT not in sys.path:
sys.path.insert(0, PROJECT_ROOT)
from app.gui import main
if __name__ == "__main__":
raise SystemExit(main())