Skip to content

Commit

Permalink
Auto discover Python 3.10 and later on Windows
Browse files Browse the repository at this point in the history
Fixes #614
  • Loading branch information
messense committed Sep 19, 2021
1 parent 971f0de commit 8df6338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn find_all_windows(target: &Target, min_python_minor: usize) -> Result<Vec<Stri
// which is used to find the installed interpreters
let execution = Command::new("py").arg("-0").output();
if let Ok(output) = execution {
let expr = Regex::new(r" -(\d).(\d)-(\d+)(?: .*)?").unwrap();
let expr = Regex::new(r" -(\d).(\d+)-(\d+)(?: .*)?").unwrap();
let lines = str::from_utf8(&output.stdout).unwrap().lines();
for line in lines {
if let Some(capture) = expr.captures(line) {
Expand Down

0 comments on commit 8df6338

Please sign in to comment.