This commit is contained in:
2026-01-10 22:22:26 -08:00
parent a44d23d6a2
commit bab2e9168c
2 changed files with 2 additions and 5 deletions

View File

@@ -1243,10 +1243,7 @@ if (Test-Path (Join-Path $repo 'CLI.py')) {
" done\n"
' echo "MM_DEBUG: end diagnostics" >&2\n'
"fi\n"
"# Packaged console script in the venv if available\n"
'if [ -x "$VENV/bin/mm" ]; then\n'
' exec "$VENV/bin/mm" "$@"\n'
"fi\n"
"# Use -m scripts.cli_entry directly instead of pip-generated wrapper to avoid entry point issues\n"
"# Prefer venv's python3, then venv's python\n"
'if [ -x "$VENV/bin/python3" ]; then\n'
' exec "$VENV/bin/python3" -m scripts.cli_entry "$@"\n'