/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
PC/layout/__main__.py
14 строк
371 B
Victor Stinner
gh-120417: Remove unused imports in Tools (#120623)
17 июн 2024, 19:09
Не верифицирован
17 июн 2024, 19:09
d9b4316
Код
Авторство
О чём код?
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))