PC/layout/__main__.py
raw| 1 | import sys |
| 2 | |
| 3 | try: |
| 4 | import layout # noqa: F401 |
| 5 | except ImportError: |
| 6 | # Failed to import our package, which likely means we were started directly |
| 7 | # Add the additional search path needed to locate our module. |
| 8 | from pathlib import Path |
| 9 | |
| 10 | sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) |
| 11 | |
| 12 | from layout.main import main |
| 13 | |
| 14 | sys.exit(int(main() or 0)) |