fdf
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:
@@ -553,11 +553,16 @@ VENV="$REPO/.venv"
|
||||
# Ensure tools installed into the venv are discoverable to subprocess-based providers
|
||||
export PATH="$VENV/bin:$PATH"
|
||||
|
||||
# Ensure top-level repo modules (e.g. CLI.py) are importable even when 'mm' is
|
||||
# invoked from outside the repo directory.
|
||||
export PYTHONPATH="$REPO${PYTHONPATH+:$PYTHONPATH}"
|
||||
|
||||
# Debug mode: set MM_DEBUG=1 to print repository, venv, and import diagnostics
|
||||
if [ -n "${MM_DEBUG:-}" ]; then
|
||||
echo "MM_DEBUG: diagnostics" >&2
|
||||
echo "Resolved REPO: $REPO" >&2
|
||||
echo "Resolved VENV: $VENV" >&2
|
||||
echo "PYTHONPATH: ${PYTHONPATH:-}" >&2
|
||||
echo "VENV exists: $( [ -d "$VENV" ] && echo yes || echo no )" >&2
|
||||
echo "Candidates:" >&2
|
||||
echo " VENV/bin/mm: $( [ -x "$VENV/bin/mm" ] && echo yes || echo no )" >&2
|
||||
|
||||
Reference in New Issue
Block a user