diff --git a/medeia_macina/cli_entry.py b/medeia_macina/cli_entry.py index 83059fe..e34ea03 100644 --- a/medeia_macina/cli_entry.py +++ b/medeia_macina/cli_entry.py @@ -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."