We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d37098b commit 85913b7Copy full SHA for 85913b7
1 file changed
crates/pet-conda/src/environments.rs
@@ -42,13 +42,17 @@ impl CondaEnvironment {
42
if let Some(conda_manager) = &conda_manager {
43
// If the conda manager for this environment is in the same folder as the conda environment,
44
// Then this is a root conda environment.
45
- if conda_manager.executable.starts_with(&self.prefix) && is_conda_install(&self.prefix) && self.conda_dir.is_none(){
+ if conda_manager.executable.starts_with(&self.prefix)
46
+ && is_conda_install(&self.prefix)
47
+ && self.conda_dir.is_none()
48
+ {
49
name = Some("base".to_string());
50
} else {
51
name = self
52
.prefix
53
.file_name()
54
.map(|name| name.to_str().unwrap_or_default().to_string());
55
+ }
56
}
57
58
let builder = PythonEnvironmentBuilder::new(Some(PythonEnvironmentKind::Conda))
0 commit comments