Fix uv-created venv detection (#1908)

Read the key read for uv from `pyenv.cfg` from `gourgeist` instead of
`uv`. I missed that we're also reading pyenv.cfg when reviewing #1852.
We could check for gourgeist for backwards compatibility, but i think
it's fine this way.
This commit is contained in:
konsti 2024-02-23 18:11:22 +01:00 committed by GitHub
parent fe1847561c
commit 62023ead49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 21 deletions

View file

@ -4,7 +4,7 @@ use std::path::PathBuf;
use thiserror::Error;
pub use crate::cfg::Configuration;
pub use crate::cfg::PyVenvConfiguration;
pub use crate::interpreter::Interpreter;
pub use crate::python_query::{find_default_python, find_requested_python};
pub use crate::python_version::PythonVersion;