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
%SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 red.py
%SYSTEMROOT%\py.exe -3 red.py
PAUSE
GOTO end
@ -14,7 +14,7 @@ GOTO end
:attempt
py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
py.exe -3.5 red.py
py.exe -3 red.py
PAUSE
GOTO end
@ -27,7 +27,7 @@ PAUSE
GOTO end
: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 https://twentysix26.github.io/Red-Docs/red_win_requirements/#software
PAUSE

View File

@ -8,7 +8,7 @@ pushd %~dp0
::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 red.py
%SYSTEMROOT%\py.exe -3 red.py
timeout 3
GOTO loopstart
@ -16,7 +16,7 @@ GOTO loopstart
:attempt
py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO lastattempt
py.exe -3.5 red.py
py.exe -3 red.py
timeout 3
GOTO loopstart
@ -29,7 +29,7 @@ timeout 3
GOTO loopstart
: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 https://twentysix26.github.io/Red-Docs/red_win_requirements/#software
PAUSE

View File

@ -24,7 +24,7 @@ echo Updating requirements...
::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1
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
GOTO end
@ -32,7 +32,7 @@ GOTO end
:attempt
py.exe --version > NUL 2>&1
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
GOTO end
@ -45,7 +45,7 @@ PAUSE
GOTO end
: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
PAUSE
GOTO end