From 872364184a781d4c08b3d9aeb4b3a6cc2d29e303 Mon Sep 17 00:00:00 2001 From: Johann Tuffe Date: Thu, 22 Oct 2020 21:01:39 +0800 Subject: [PATCH] Allow dot paths (.conda) to be found My conda installs environment in C:\Users\xxx\.conda\envs folders. This PR allows searching such paths to find an interpreter. --- src/python_interpreter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_interpreter.rs b/src/python_interpreter.rs index b1ebf575a..457194ec8 100644 --- a/src/python_interpreter.rs +++ b/src/python_interpreter.rs @@ -148,7 +148,7 @@ fn find_all_windows(target: &Target) -> Result> { // The regex has three parts: The first matches the name and skips // comments, the second skips the part in between and the third // extracts the path - let re = Regex::new(r"^([^#].*?)[\s*]+([\w\\:-]+)$").unwrap(); + let re = Regex::new(r"^([^#].*?)[\s*]+([\w\\:.-]+)\s*$").unwrap(); let mut paths = vec![]; for i in lines { if let Some(capture) = re.captures(&i) {