(val: Option<&String>)
| 173 | } |
| 174 | |
| 175 | fn is_not_none_or_zero(val: Option<&String>) -> bool { |
| 176 | match val { |
| 177 | Some(v) => v != "0", |
| 178 | None => false, |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | /// Run a python script using the specified interpreter binary. |
| 183 | fn run_python_script(interpreter: &str, script: &str) -> Result<String, String> { |