Skip to content

Commit

Permalink
more paths
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jun 5, 2024
1 parent 6608e65 commit 0ef5268
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/pet-conda/src/environment_locations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,18 @@ pub fn get_known_conda_install_locations(env_vars: &EnvVariables) -> Vec<PathBuf
known_paths.push(Path::new(&home_drive).join("miniconda"));
known_paths.push(Path::new(&home_drive).join("miniforge3"));
}
if let Some(ref conda_root) = env_vars.conda_root {
known_paths.push(PathBuf::from(conda_root.clone()));
}
if let Some(ref conda_prefix) = env_vars.conda_prefix {
known_paths.push(PathBuf::from(conda_prefix.clone()));
}
if let Some(ref conda) = env_vars.conda {
let conda = PathBuf::from(conda);
if let Some(parent) = conda.parent() {
known_paths.push(parent.to_path_buf());
}
}
if let Some(home) = env_vars.clone().home {
known_paths.push(home.clone().join("anaconda3"));
known_paths.push(home.clone().join("miniconda3"));
Expand Down

0 comments on commit 0ef5268

Please sign in to comment.