@@ -119,7 +119,7 @@ PythonFinder.prototype = {
119
119
checks . push ( {
120
120
before : ( ) => {
121
121
this . addLog (
122
- 'checking if the py launcher can be used to find Python 2 ' )
122
+ 'checking if the py launcher can be used to find Python' )
123
123
} ,
124
124
check : this . checkPyLauncher
125
125
} )
@@ -188,15 +188,10 @@ PythonFinder.prototype = {
188
188
// Distributions of Python on Windows by default install with the "py.exe"
189
189
// Python launcher which is more likely to exist than the Python executable
190
190
// being in the $PATH.
191
- // Because the Python launcher supports all versions of Python, we have to
192
- // explicitly request a Python 2 version. This is done by supplying "-2" as
193
- // the first command line argument. Since "py.exe -2" would be an invalid
194
- // executable for "execFile", we have to use the launcher to figure out
195
- // where the actual "python.exe" executable is located.
196
191
checkPyLauncher : function checkPyLauncher ( errorCallback ) {
197
192
this . log . verbose (
198
- `- executing "${ this . pyLauncher } " to get Python 2 executable path` )
199
- this . run ( this . pyLauncher , [ '-2' , ... this . argsExecutable ] , false ,
193
+ `- executing "${ this . pyLauncher } " to get Python executable path` )
194
+ this . run ( this . pyLauncher , this . argsExecutable , false ,
200
195
function ( err , execPath ) {
201
196
// Possible outcomes: same as checkCommand
202
197
if ( err ) {
0 commit comments