()
| 45 | } |
| 46 | |
| 47 | pub 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 | } |
no outgoing calls
no test coverage detected