Skip to content

Commit

Permalink
Re-add support for pyenv shims
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Mar 18, 2024
1 parent 653327b commit 7e4aa65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/uv-interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ impl InterpreterInfo {
let output = Command::new(interpreter)
.arg("-m")
.arg("python.get_interpreter_info")
.current_dir(tempdir.path().simplified())
.env("PYTHONPATH", tempdir.path())
.env("PYTHONSAFEPATH", "1")
.output()
.map_err(|err| Error::PythonSubcommandLaunch {
interpreter: interpreter.to_path_buf(),
Expand Down

0 comments on commit 7e4aa65

Please sign in to comment.