dfdf
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
nose
2025-12-24 03:57:44 -08:00
parent 4b87b0817d
commit 7598fd5b2a

View File

@@ -163,13 +163,12 @@ def _run_cli(clean_args: List[str]) -> int:
if hasattr(mod, "MedeiaCLI"):
MedeiaCLI = getattr(mod, "MedeiaCLI")
else:
# Try importing the top-level `CLI` module directly (editable/repo mode)
# Try importing the top-level `CLI` module directly (editable/repo mode).
try:
from CLI import MedeiaCLI as _M # type: ignore
MedeiaCLI = _M
except Exception:
raise ImportError(
raise ImportError(
"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"
"If problems persist, recreate the venv and reinstall the project."