diff --git a/MakeInstall.bat b/MakeInstall.bat index 5d7fdeb..8f0be21 100644 --- a/MakeInstall.bat +++ b/MakeInstall.bat @@ -50,8 +50,12 @@ goto checkpy :checkpy REM Get python location -FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^> nul`) DO ( - SET "python=%%F" +set "python=" +FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^>^&1`) DO ( + set "t=%%F" + if /i "!t:~0,6!" == "python" ( + set "python=%%F" + ) ) REM Check for py and give helpful hints!