Fix search for python.exe on Windows (#1381)

A la #1351
This commit is contained in:
Zanie Blue 2024-02-15 17:25:20 -06:00 committed by GitHub
parent 3559f0e6ab
commit 18a7c079de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,7 +157,9 @@ pub fn find_default_python(platform: &Platform, cache: &Cache) -> Result<Interpr
"python.exe",
env::var_os("UV_TEST_PYTHON_PATH"),
current_dir,
) {
)
.or_else(|_| which::which("python.exe"))
{
python
} else {
installed_pythons_windows()?