MCPcopy Create free account
hub / github.com/Glyphack/enderpy / default_python_path

Function default_python_path

compat/src/runpython.rs:47–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47pub fn default_python_path() -> Result<PathBuf> {
48 let mut result = which("python");
49 if result.is_err() {
50 result = which("python3");
51 }
52 result
53 .into_diagnostic()
54 .wrap_err("Unable to find python binary.")
55}

Callers 2

parse_python_sourceFunction · 0.85
lex_python_sourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected