MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / worker_python_path

Function worker_python_path

crates/core/src/plugins/nemo_guardrails/python.rs:703–709  ·  view source on GitHub ↗
(config: &NeMoGuardrailsConfig)

Source from the content-addressed store, hash-verified

701}
702
703fn 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
711fn merge_python_path(configured: &OsStr, inherited: Option<&OsStr>) -> Option<OsString> {
712 let mut paths = env::split_paths(configured).collect::<Vec<_>>();

Callers 1

startMethod · 0.85

Calls 2

python_pathFunction · 0.85
merge_python_pathFunction · 0.85

Tested by

no test coverage detected