Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jun 5, 2024
1 parent 08761ad commit 59cda0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/pet-conda/src/environment_locations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
utils::{is_conda_env, is_conda_install},
};
use log::trace;
use pet_utils::path::get_absolute_path;
use std::{
fs,
path::{Path, PathBuf},
Expand Down Expand Up @@ -145,7 +146,7 @@ pub fn get_conda_envs_from_environment_txt(env_vars: &EnvVariables) -> Vec<PathB
if let Ok(reader) = fs::read_to_string(environment_txt.clone()) {
trace!("Found environments.txt file {:?}", environment_txt);
for line in reader.lines() {
envs.push(PathBuf::from(line.to_string()));
envs.push(get_absolute_path(&PathBuf::from(line.to_string())));
}
}
}
Expand Down

0 comments on commit 59cda0b

Please sign in to comment.