From 86a945e666aa075774f577fbadcccfa8a6ae9f67 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sat, 23 Aug 2014 04:22:20 +0000 Subject: [PATCH] Fix syntax issues with python-wrap.bat --- mswin32/python-wrap.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mswin32/python-wrap.bat b/mswin32/python-wrap.bat index 3ee6edcb8..9b129457b 100755 --- a/mswin32/python-wrap.bat +++ b/mswin32/python-wrap.bat @@ -20,7 +20,11 @@ if not exist "%PROG%" ( set PATH=%PATH%;C:\Python27;C:\Python26;C:\Python25;C:\Python24 for %%P in ( python.exe ) do set PYTHON=%%~f$PATH:P -if not exist "%PYTHON%" ( +if not exist "%PYTHON%" GOTO:NOPYTHON + +GOTO:EXEC + +:NOPYTHON echo Cannot run %PROG% echo because python.exe was not found anywhere in echo %PATH%. @@ -28,7 +32,7 @@ if not exist "%PYTHON%" ( echo To run this program, download and install Python from echo http://www.python.org/download. exit /B 1 -) +:EXEC rem This command chaining allows the exit code to propagate. endlocal & "%PYTHON%" "%PROG%" %*