Hotfix update.bat

This commit is contained in:
Twentysix 2016-08-19 15:43:09 +02:00 committed by GitHub
parent 441b405cc3
commit 9ded9420d0

View File

@ -21,7 +21,9 @@ git pull
echo. echo.
echo Updating requirements... echo Updating requirements...
py.exe --version > NUL 2>&1 ::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.5 -m pip install --upgrade -r requirements.txt
PAUSE PAUSE
GOTO end GOTO end
@ -37,7 +39,7 @@ GOTO end
::As a last resort, attempts to start whatever Python there is ::As a last resort, attempts to start whatever Python there is
:lastattempt :lastattempt
python.exe --version > NUL 2>&1 python.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO message IF %ERRORLEVEL% NEQ 0 GOTO pythonmessage
python.exe -m pip install --upgrade -r requirements.txt python.exe -m pip install --upgrade -r requirements.txt
PAUSE PAUSE
GOTO end GOTO end