Skip to content

Commit 9e5987b

Browse files
committed
fix: update Python search path to support py launcher installations
- Comment out Python* wildcard search to avoid conflicts - Add py* wildcard search to support py launcher installations - This improves Python detection on Windows systems with py launcher
1 parent 43b5ba3 commit 9e5987b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/install.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,8 @@ function Find-SystemPython {
11311131

11321132
# Add drive-specific paths
11331133
foreach ($drive in (Get-PSDrive -PSProvider FileSystem | Select-Object -ExpandProperty Root)) {
1134-
$searchPaths += "$drive\Python*\python.exe"
1134+
# $searchPaths += "$drive\Python*\python.exe"
1135+
$searchPaths += "$drive\py*\python.exe"
11351136
$searchPaths += "$drive\Tools\Python*\python.exe"
11361137
$searchPaths += "$drive\Anaconda3\python.exe"
11371138
$searchPaths += "$drive\Miniconda3\python.exe"

0 commit comments

Comments
 (0)