From 9ded9420d0b2af2c98bbd90e2efb9a0bf9b590e8 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Fri, 19 Aug 2016 15:43:09 +0200 Subject: [PATCH] Hotfix update.bat --- update.bat | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/update.bat b/update.bat index b1a637dec..2a14df9d2 100644 --- a/update.bat +++ b/update.bat @@ -21,7 +21,9 @@ git pull echo. 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 PAUSE GOTO end @@ -37,7 +39,7 @@ GOTO end ::As a last resort, attempts to start whatever Python there is :lastattempt 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 PAUSE GOTO end @@ -53,4 +55,4 @@ echo Git is either not installed or not in the PATH environment variable. Instal echo https://twentysix26.github.io/Red-Docs/red_install_windows/#software PAUSE -:end \ No newline at end of file +:end