(config: &NeMoGuardrailsConfig)
| 691 | } |
| 692 | |
| 693 | fn python_path(config: &NeMoGuardrailsConfig) -> Option<String> { |
| 694 | config |
| 695 | .local |
| 696 | .as_ref() |
| 697 | .and_then(|local| local.python_path.as_deref()) |
| 698 | .map(str::trim) |
| 699 | .filter(|value| !value.is_empty()) |
| 700 | .map(str::to_string) |
| 701 | } |
| 702 | |
| 703 | fn worker_python_path(config: &NeMoGuardrailsConfig) -> Option<OsString> { |
| 704 | let configured = python_path(config)?; |
no test coverage detected