Skip to content

Commit 85913b7

Browse files
committed
Oops
1 parent d37098b commit 85913b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/pet-conda/src/environments.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,17 @@ impl CondaEnvironment {
4242
if let Some(conda_manager) = &conda_manager {
4343
// If the conda manager for this environment is in the same folder as the conda environment,
4444
// 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(){
45+
if conda_manager.executable.starts_with(&self.prefix)
46+
&& is_conda_install(&self.prefix)
47+
&& self.conda_dir.is_none()
48+
{
4649
name = Some("base".to_string());
4750
} else {
4851
name = self
4952
.prefix
5053
.file_name()
5154
.map(|name| name.to_str().unwrap_or_default().to_string());
55+
}
5256
}
5357

5458
let builder = PythonEnvironmentBuilder::new(Some(PythonEnvironmentKind::Conda))

0 commit comments

Comments
 (0)