cpdctrl-gui/main.py

18 lines
535 B
Python
Raw Normal View History

2025-02-13 12:20:00 +01:00
import sys
if __name__ == "__main__":
if __package__ is None:
# make relative imports work as described here: https://peps.python.org/pep-0366/#proposed-change
__package__ = "cpdctrl"
from os import path
filepath = path.realpath(path.abspath(__file__))
pdir = path.dirname(path.dirname(filepath))
sys.path.insert(0, pdir)
sys.path.insert(0, path.join(pdir, "cpdctrl"))
print(sys.path)
from app import init
if __name__ == '__main__':
import sys
sys.exit(init.run())