MCPcopy Create free account
hub / github.com/PyO3/pyo3 / run_python_script

Function run_python_script

pyo3-build-config/src/impl_.rs:2560–2562  ·  view source on GitHub ↗

Run a python script using the specified interpreter binary.

(interpreter: &Path, script: &str)

Source from the content-addressed store, hash-verified

2558
2559/// Run a python script using the specified interpreter binary.
2560fn run_python_script(interpreter: &Path, script: &str) -> Result<String> {
2561 run_python_script_with_envs(interpreter, script, std::iter::empty::<(&str, &str)>())
2562}
2563
2564/// Run a python script using the specified interpreter binary with additional environment
2565/// variables (e.g. PYTHONPATH) set.

Callers 2

from_interpreterMethod · 0.85
parse_sysconfigdataFunction · 0.85

Calls 1

Tested by

no test coverage detected