Fixes for dummy python.exe

This commit is contained in:
CorpNewt 2019-05-11 17:20:23 -05:00 committed by GitHub
parent e183a6d9e4
commit 8f2e47aaa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ goto checkpy
:checkpy
REM Get python location
FOR /F "tokens=* USEBACKQ" %%F IN (`where python 2^> nul`) DO (
FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^> nul`) DO (
SET "python=%%F"
)
@ -174,8 +174,8 @@ exit /b
REM Python found
cls
if "%*"=="" (
"!python!" "!thisDir!!script_name!"
python "!thisDir!!script_name!"
) else (
"!python!" "!thisDir!!script_name!" %*
python "!thisDir!!script_name!" %*
)
goto :EOF