Files
cimtechniques-service-suite/packaging/suite_launcher.py

17 lines
610 B
Python

"""Suite PyInstaller entry point.
Kept separate from ``cim_suite/modules/da12/app.py`` on purpose: PyInstaller runs its
entry script as ``__main__`` with no package context, which breaks the relative imports
inside ``app.py`` ("attempted relative import with no known parent package"). By
importing the package *absolutely* here, ``app.py`` loads as a proper submodule of
``cim_suite.modules.da12`` and its relative imports resolve correctly — both in the
bundled exe and when this file is run directly.
"""
import sys
from cim_suite.shell.app import main
if __name__ == "__main__":
sys.exit(main())