1import sys
2
3try:
4    import layout
5except 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
12from layout.main import main
13
14sys.exit(int(main() or 0))
15