pub fn env_absolute_path<E: EnvSource + ?Sized>(
env: &E,
variable: &str,
) -> Result<Option<PathBuf>, PathsError>Expand description
Read a path-valued variable, such as an application’s own home override, from
env (pass SystemEnv for the process environment, or a test double).
Unset or empty values return None; absolute values are preserved verbatim.
A relative value is an error naming variable, unlike XDG directory resolution,
which ignores relative overrides and tries the home-directory fallback.