Skip to content

Commit b818199

Browse files
Use prefix instead of base_prefix for environment root (#2117)
Closes #2107.
1 parent 72dc724 commit b818199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/uv-interpreter/src/python_environment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl PythonEnvironment {
5050
return Err(Error::RequestedPythonNotFound(python.to_string()));
5151
};
5252
Ok(Self {
53-
root: interpreter.base_prefix().to_path_buf(),
53+
root: interpreter.prefix().to_path_buf(),
5454
interpreter,
5555
})
5656
}
@@ -59,7 +59,7 @@ impl PythonEnvironment {
5959
pub fn from_default_python(platform: &Platform, cache: &Cache) -> Result<Self, Error> {
6060
let interpreter = find_default_python(platform, cache)?;
6161
Ok(Self {
62-
root: interpreter.base_prefix().to_path_buf(),
62+
root: interpreter.prefix().to_path_buf(),
6363
interpreter,
6464
})
6565
}

0 commit comments

Comments
 (0)