2018-12-10 18:52:57 -08:00
|
|
|
import sys
|
|
|
|
|
|
|
|
try:
|
2024-06-17 18:09:26 +02:00
|
|
|
import layout # noqa: F401
|
2018-12-10 18:52:57 -08:00
|
|
|
except ImportError:
|
|
|
|
# Failed to import our package, which likely means we were started directly
|
|
|
|
# Add the additional search path needed to locate our module.
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
|
|
|
|
|
|
|
|
from layout.main import main
|
|
|
|
|
|
|
|
sys.exit(int(main() or 0))
|