dfdf
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:
@@ -163,13 +163,12 @@ def _run_cli(clean_args: List[str]) -> int:
|
|||||||
if hasattr(mod, "MedeiaCLI"):
|
if hasattr(mod, "MedeiaCLI"):
|
||||||
MedeiaCLI = getattr(mod, "MedeiaCLI")
|
MedeiaCLI = getattr(mod, "MedeiaCLI")
|
||||||
else:
|
else:
|
||||||
# Try importing the top-level `CLI` module directly (editable/repo mode)
|
# Try importing the top-level `CLI` module directly (editable/repo mode).
|
||||||
try:
|
try:
|
||||||
from CLI import MedeiaCLI as _M # type: ignore
|
from CLI import MedeiaCLI as _M # type: ignore
|
||||||
|
|
||||||
MedeiaCLI = _M
|
MedeiaCLI = _M
|
||||||
except Exception:
|
except Exception:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
"Imported module 'medeia_entry' does not define 'MedeiaCLI' and direct import of top-level 'CLI' failed.\n"
|
"Imported module 'medeia_entry' does not define 'MedeiaCLI' and direct import of top-level 'CLI' failed.\n"
|
||||||
"Remedy: activate your venv and run: pip install -e . (or re-run the bootstrap script).\n"
|
"Remedy: activate your venv and run: pip install -e . (or re-run the bootstrap script).\n"
|
||||||
"If problems persist, recreate the venv and reinstall the project."
|
"If problems persist, recreate the venv and reinstall the project."
|
||||||
|
|||||||
Reference in New Issue
Block a user