Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
allendowney
GitHub Repository: allendowney/cpython
Path: blob/main/PC/layout/__main__.py
12 views
1
import sys
2
3
try:
4
import layout
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))
15
16