fn call_python<I, S>(python: &Path, args: I) -> Result<Output>
where
    I: IntoIterator<Item = S>,
    S: AsRef<OsStr>,
{
    Ok(Command::new(&python)
        .args(args)
        .output()
        .context(format!("Failed to run python at {:?}", &python))?)
}
/// Wraps some boilerplate around error handling when calling python
Wraps some boilerplate around error handling when calling python
Wraps some boilerplate around error handling when calling python
fn call_python<I, S>(python: &Path, args: I) -> Result<Output>
where
    I: IntoIterator<Item = S>,
    S: AsRef<OsStr>,
{
    Ok(Command::new(&python)
        .args(args)
        .output()
        .context(format!("Failed to run python at {:?}", &python))?)
}
fn call_python < I , S > ( python : & Path , args : I ) -> Result < Output > where I : IntoIterator < Item = S > , S : AsRef < OsStr > , { Ok ( Command :: new ( & python ) . args ( args ) . output ( ) . context ( format ! ( " " python ) ) ? ) }
Wraps some boilerplate around error handling when calling python
Wraps some boilerplate around error handling when calling python
python
&Path
args
I
python
&Path
args
I