Files
GTI_GERENCIADOR_FISCAL/installer/e2e_driver.py
T

14 lines
442 B
Python

import os
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
DEFAULT_PAYLOAD = ROOT / "dist" / "installer"
PAYLOAD = Path(os.environ.get("GTI_E2E_PAYLOAD", str(DEFAULT_PAYLOAD)))
sys._MEIPASS = str(PAYLOAD) # frozen-equivalent: extract_payload() reads this
sys.path.insert(0, str(ROOT / "agent" / "src"))
sys.path.insert(0, str(ROOT / "installer"))
import setup_main # noqa: E402
sys.exit(setup_main.cli())