MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / default_driver_search_dirs

Method default_driver_search_dirs

crates/openshell-server/src/compute/vm.rs:140–149  ·  view source on GitHub ↗
(home: Option<PathBuf>)

Source from the content-addressed store, hash-verified

138
139 #[must_use]
140 fn default_driver_search_dirs(home: Option<PathBuf>) -> Vec<PathBuf> {
141 let mut dirs = Vec::new();
142 if let Some(home) = home {
143 dirs.push(home.join(".local").join("libexec").join("openshell"));
144 }
145 push_unique_path(&mut dirs, PathBuf::from("/usr/libexec/openshell"));
146 push_unique_path(&mut dirs, PathBuf::from("/usr/local/libexec/openshell"));
147 push_unique_path(&mut dirs, PathBuf::from("/usr/local/libexec"));
148 dirs
149 }
150}
151
152impl Default for VmComputeConfig {

Callers

nothing calls this directly

Calls 2

push_unique_pathFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected