Skip to content

Commit

Permalink
lib: try the py.exe launcher before default paths
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeDeeG committed Feb 22, 2021
1 parent ec64f91 commit c39ad57
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/find-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ PythonFinder.prototype = {
]

if (this.win) {
checks.push({
before: () => {
this.addLog(
'checking if the py launcher can be used to find Python 3')
},
check: this.checkPyLauncher
})
for (var i = 0; i < this.winDefaultLocations.length; ++i) {
const location = this.winDefaultLocations[i]
checks.push({
Expand All @@ -124,13 +131,6 @@ PythonFinder.prototype = {
arg: location
})
}
checks.push({
before: () => {
this.addLog(
'checking if the py launcher can be used to find Python 3')
},
check: this.checkPyLauncher
})
}

return checks
Expand Down

0 comments on commit c39ad57

Please sign in to comment.