Skip to main content

resolve_with

Function resolve_with 

Source
pub fn resolve_with(
    program: &Path,
    cwd: &Path,
    variable: impl Fn(&str) -> Option<OsString>,
) -> Result<PathBuf, Error>
Expand description

Look up a pathname using the child environment, not the caller’s PATH. This is for inspection only. Use super::process::resolve_with to select an image for execution. variable may be a case-sensitive lookup into a stored environment snapshot.