Skip to main content

Module python

Module python 

Source
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 python3 executable — installs from python.org expose python.exe (or py.exe), so hardcoding python3 causes “program not found” at spawn time. On Unix python3 remains the convention.
detect_python
Resolve a usable Python interpreter, honoring explicit if provided.