18 lines
535 B
Python
18 lines
535 B
Python
![]() |
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())
|