Skip to content

Commit

Permalink
Allow identical VIRTUAL_ENV and CONDA_PREFIX env vars (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin authored Dec 18, 2023
1 parent 77c6e6f commit 8c6463d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/puffin-interpreter/src/virtual_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ pub(crate) fn detect_virtual_env(target: &PythonPlatform) -> Result<Option<PathB
);
return Ok(Some(PathBuf::from(dir)));
}
(Some(venv), Some(conda)) if venv == conda => return Ok(Some(PathBuf::from(venv))),
(Some(_), Some(_)) => {
return Err(Error::Conflict);
}
Expand Down

0 comments on commit 8c6463d

Please sign in to comment.