Skip to content

Commit

Permalink
Fix detection of Windows Store Python installs.
Browse files Browse the repository at this point in the history
Some Windows versions refuse to see the Windows Store application
aliases unless you explicitly append the ".exe" extension.
  • Loading branch information
yodaldevoid committed Jun 2, 2022
1 parent f3a735d commit df008aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_interpreter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ fn find_all_windows(target: &Target, min_python_minor: usize) -> Result<Vec<Stri
// Fallback to pythonX.Y for Microsoft Store versions
for minor in min_python_minor..MAXIMUM_PYTHON_MINOR {
if !versions_found.contains(&(3, minor)) {
interpreter.push(format!("python3.{}", minor));
interpreter.push(format!("python3.{}.exe", minor));
versions_found.insert((3, minor));
}
}
Expand Down

0 comments on commit df008aa

Please sign in to comment.