Expand description
Python interpreter detection for sidecar provisioning.
Hard-fails with a download link when no usable Python ≥3.11 is found.
Probes candidates with -c "import sys" to skip the Windows Store stub
which exits 9009 and writes to stderr rather than actually running.
Functions§
- default_
python_ command - Platform-native default name for the Python interpreter when spawning a
sidecar launcher. On Windows there is no
python3executable — installs from python.org exposepython.exe(orpy.exe), so hardcodingpython3causes “program not found” at spawn time. On Unixpython3remains the convention. - detect_
npm - Detect the
npmexecutable on PATH. Returns the resolved absolute path on success, or an error with a download link when missing. Used by the session-manager sidecar installer (Node.js sidecar that drives the Claude Agent SDK and codex CLI). - detect_
python - Resolve a usable Python interpreter, honoring
explicitif provided.