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

Function env_executable

crates/core/src/plugins/nemo_guardrails/python.rs:686–691  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

684}
685
686fn env_executable(name: &str) -> Option<String> {
687 env::var(name)
688 .ok()
689 .map(|value| value.trim().to_string())
690 .filter(|value| !value.is_empty())
691}
692
693fn python_path(config: &NeMoGuardrailsConfig) -> Option<String> {
694 config

Callers 1

python_executableFunction · 0.85

Calls 2

okMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected