(config: &NeMoGuardrailsConfig)
| 701 | } |
| 702 | |
| 703 | fn worker_python_path(config: &NeMoGuardrailsConfig) -> Option<OsString> { |
| 704 | let configured = python_path(config)?; |
| 705 | merge_python_path( |
| 706 | OsStr::new(&configured), |
| 707 | env::var_os("PYTHONPATH").as_deref(), |
| 708 | ) |
| 709 | } |
| 710 | |
| 711 | fn merge_python_path(configured: &OsStr, inherited: Option<&OsStr>) -> Option<OsString> { |
| 712 | let mut paths = env::split_paths(configured).collect::<Vec<_>>(); |
no test coverage detected