Function tidy::ext_tool_checks::py_runner

source ยท
fn py_runner(
    py_path: &Path,
    as_module: bool,
    stdout: Option<&mut String>,
    bin: &'static str,
    args: &[&OsStr],
) -> Result<(), Error>
Expand description

Run a python command with given arguments. py_path should be a virtualenv.

Captures stdout to a string if provided, otherwise prints the output.