Skip to content

Commit

Permalink
Deduplicate implementation for python_installation_from_directory (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Sep 10, 2024
1 parent 533c7e3 commit aa52952
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,7 @@ fn python_installation_from_directory(
cache: &Cache,
) -> Result<PythonInstallation, crate::interpreter::Error> {
let executable = virtualenv_python_executable(path);
Ok(PythonInstallation {
source: PythonSource::ProvidedPath,
interpreter: Interpreter::query(executable, cache)?,
})
python_installation_from_executable(&executable, cache)
}

/// Lazily iterate over all Python interpreters on the path with the given executable name.
Expand Down

0 comments on commit aa52952

Please sign in to comment.