File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ impl EnvVariables {
3030 .get_env_var("PIPENV_PIPFILE".to_string())
3131 .unwrap_or("Pipfile".to_string()),
3232 home: env.get_user_home(),
33- workon_home: env.get_env_var("WORKON_HOME".to_string()).map(PathBuf::from),
33+ workon_home: env
34+ .get_env_var("WORKON_HOME".to_string())
35+ .map(PathBuf::from),
3436 path: env.get_env_var("PATH".to_string()),
3537 }
3638 }
Original file line number Diff line number Diff line change @@ -209,15 +209,14 @@ fn list_environments(env_vars: &EnvVariables) -> Vec<PythonEnvironment> {
209209 let symlinks = find_executables(&bin_dir);
210210 let version = version::from_creator_for_virtual_env(&path);
211211
212- let env = PythonEnvironmentBuilder::new(Some(
213- PythonEnvironmentKind::Pipenv,
214- ))
215- .executable(Some(norm_case(python_exe)))
216- .version(version)
217- .prefix(Some(norm_case(path.clone())))
218- .project(Some(project_path))
219- .symlinks(Some(symlinks))
220- .build();
212+ let env =
213+ PythonEnvironmentBuilder::new(Some(PythonEnvironmentKind::Pipenv))
214+ .executable(Some(norm_case(python_exe)))
215+ .version(version)
216+ .prefix(Some(norm_case(path.clone())))
217+ .project(Some(project_path))
218+ .symlinks(Some(symlinks))
219+ .build();
221220
222221 trace!("Found pipenv environment: {:?}", env);
223222 environments.push(env);
You can’t perform that action at this time.
0 commit comments