Files
GTI_GERENCIADOR_FISCAL/fiscal/installer/e2e_driver.py
T
gti d21a9d1140 Add 'fiscal/' from commit '102ba84500dbd9655a0471288c3e278652593ca9'
git-subtree-dir: fiscal
git-subtree-mainline: d95165fc8f
git-subtree-split: 102ba84500
2026-09-29 14:43:23 -03:00

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())