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
+3 -1
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()?