0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 08:52:25 +01:00
cpython/PC/layout/__main__.py
2024-06-17 18:09:26 +02:00

15 lines
371 B
Python

import sys
try:
import layout # noqa: F401
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))