df
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
This wraps the existing `medeia_entry.py` runner so installers can set
|
||||
entry points to `medeia_macina.cli_entry:main`.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Optional, List, Tuple
|
||||
@@ -196,6 +197,7 @@ def _run_cli(clean_args: List[str]) -> int:
|
||||
try:
|
||||
_ensure_repo_root_on_sys_path()
|
||||
from CLI import MedeiaCLI as _M # type: ignore
|
||||
|
||||
MedeiaCLI = _M
|
||||
except Exception:
|
||||
raise ImportError(
|
||||
@@ -261,6 +263,7 @@ def main(argv: Optional[List[str]] = None) -> int:
|
||||
# exit early to avoid confusing import-time errors later during startup.
|
||||
try:
|
||||
from SYS.env_check import ensure_urllib3_ok
|
||||
|
||||
try:
|
||||
ensure_urllib3_ok(exit_on_error=True)
|
||||
except SystemExit as exc:
|
||||
@@ -305,4 +308,4 @@ def main(argv: Optional[List[str]] = None) -> int:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
raise SystemExit(main())
|
||||
|
||||
Reference in New Issue
Block a user