Skip to main content

python_interpreter

Function python_interpreter 

Source
pub fn python_interpreter() -> Option<&'static str>
Expand description

The interpreter used to run .py scripts on this machine.

Returns the first candidate found on PATH, or None when no Python is installed, so callers can report that rather than failing to spawn a command that was never going to exist.