resolve_env_path

Function resolve_env_path 

Source
pub fn resolve_env_path(
    env_var: &str,
    default_path: impl AsRef<Path>,
) -> MicrosandboxUtilsResult<PathBuf>
Expand description

Resolves the path to a file, checking both environment variable and default locations.

First checks the environment variable specified by env_var. If that’s not set, falls back to default_path. Returns an error if the file is not found at the resolved location.