Make .bat files default to highest 3.* installation

This commit is contained in:
Twentysix 2016-12-27 00:27:10 +01:00
parent c7284ffa2a
commit 607f88cf75
3 changed files with 14 additions and 14 deletions

View File

@ -6,7 +6,7 @@ pushd %~dp0
::Attempts to start py launcher without relying on PATH ::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1 %SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 red.py %SYSTEMROOT%\py.exe -3 red.py
PAUSE PAUSE
GOTO end GOTO end
@ -14,7 +14,7 @@ GOTO end
:attempt :attempt
py.exe --version > NUL 2>&1 py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
py.exe -3.5 red.py py.exe -3 red.py
PAUSE PAUSE
GOTO end GOTO end
@ -27,9 +27,9 @@ PAUSE
GOTO end GOTO end
:message :message
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment echo Couldn't find a valid Python ^>3.5 installation. Python needs to be installed and available in the PATH environment
echo variable. echo variable.
echo https://twentysix26.github.io/Red-Docs/red_win_requirements/#software echo https://twentysix26.github.io/Red-Docs/red_win_requirements/#software
PAUSE PAUSE
:end :end

View File

@ -8,7 +8,7 @@ pushd %~dp0
::Attempts to start py launcher without relying on PATH ::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1 %SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 red.py %SYSTEMROOT%\py.exe -3 red.py
timeout 3 timeout 3
GOTO loopstart GOTO loopstart
@ -16,7 +16,7 @@ GOTO loopstart
:attempt :attempt
py.exe --version > NUL 2>&1 py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
py.exe -3.5 red.py py.exe -3 red.py
timeout 3 timeout 3
GOTO loopstart GOTO loopstart
@ -29,9 +29,9 @@ timeout 3
GOTO loopstart GOTO loopstart
:message :message
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment echo Couldn't find a valid Python ^>3.5 installation. Python needs to be installed and available in the PATH environment
echo variable. echo variable.
echo https://twentysix26.github.io/Red-Docs/red_win_requirements/#software echo https://twentysix26.github.io/Red-Docs/red_win_requirements/#software
PAUSE PAUSE
:end :end

View File

@ -9,7 +9,7 @@ if NOT %errorLevel% == 0 (
echo Right click on it ^-^> Run as administrator echo Right click on it ^-^> Run as administrator
echo. echo.
PAUSE PAUSE
GOTO end GOTO end
) )
::Checking git and updating ::Checking git and updating
@ -24,7 +24,7 @@ echo Updating requirements...
::Attempts to start py launcher without relying on PATH ::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1 %SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 -m pip install --upgrade -r requirements.txt %SYSTEMROOT%\py.exe -3 -m pip install --upgrade -r requirements.txt
PAUSE PAUSE
GOTO end GOTO end
@ -32,7 +32,7 @@ GOTO end
:attempt :attempt
py.exe --version > NUL 2>&1 py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
py.exe -3.5 -m pip install --upgrade -r requirements.txt py.exe -3 -m pip install --upgrade -r requirements.txt
PAUSE PAUSE
GOTO end GOTO end
@ -45,7 +45,7 @@ PAUSE
GOTO end GOTO end
:pythonmessage :pythonmessage
echo Couldn't find a valid Python 3.5 installation. Python needs to be installed and available in the PATH environment variable. echo Couldn't find a valid Python ^>3.5 installation. Python needs to be installed and available in the PATH environment variable.
echo https://twentysix26.github.io/Red-Docs/red_install_windows/#software echo https://twentysix26.github.io/Red-Docs/red_install_windows/#software
PAUSE PAUSE
GOTO end GOTO end