File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments