Staging
v0.5.1
https://github.com/python/cpython
Revision 34214de6ab9ebcb5d63d0e116800d5ee535a38cb authored by Łukasz Langa on 01 October 2019, 12:58:26 UTC, committed by Łukasz Langa on 01 October 2019, 12:58:26 UTC
1 parent bfe1f74
Raw File
Tip revision: 34214de6ab9ebcb5d63d0e116800d5ee535a38cb authored by Łukasz Langa on 01 October 2019, 12:58:26 UTC
v3.8.0rc1
Tip revision: 34214de
__main__.py
import sys

try:
    import layout
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))
back to top