From b113a27a04064e1d37961d04038ae106f96e5fab Mon Sep 17 00:00:00 2001 From: dmiller Date: Sat, 23 Aug 2014 04:22:18 +0000 Subject: [PATCH] Give python-wrap.bat Windows CRLF lines --- mswin32/python-wrap.bat | 68 ++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/mswin32/python-wrap.bat b/mswin32/python-wrap.bat index 03b89bae9..3ee6edcb8 100755 --- a/mswin32/python-wrap.bat +++ b/mswin32/python-wrap.bat @@ -1,34 +1,34 @@ -@echo off - -rem This batch file searches for a Python interpreter and uses it to run a -rem script. It displays an error message if not Python is found. The script -rem to run must have the same filename as the batch file, with an extension of -rem .py rather than .bat. - -setlocal - -rem %0 is the name of the batch file. "dpn" means drive, path, filename -rem (excluding extension). -set PROG=%~dpn0.py - -if not exist "%PROG%" ( - echo Cannot run %PROG% - echo because that file does not exist. - exit /B 1 -) - -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%" ( - echo Cannot run %PROG% - echo because python.exe was not found anywhere in - echo %PATH%. - echo. - echo To run this program, download and install Python from - echo http://www.python.org/download. - exit /B 1 -) - -rem This command chaining allows the exit code to propagate. -endlocal & "%PYTHON%" "%PROG%" %* +@echo off + +rem This batch file searches for a Python interpreter and uses it to run a +rem script. It displays an error message if not Python is found. The script +rem to run must have the same filename as the batch file, with an extension of +rem .py rather than .bat. + +setlocal + +rem %0 is the name of the batch file. "dpn" means drive, path, filename +rem (excluding extension). +set PROG=%~dpn0.py + +if not exist "%PROG%" ( + echo Cannot run %PROG% + echo because that file does not exist. + exit /B 1 +) + +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%" ( + echo Cannot run %PROG% + echo because python.exe was not found anywhere in + echo %PATH%. + echo. + echo To run this program, download and install Python from + echo http://www.python.org/download. + exit /B 1 +) + +rem This command chaining allows the exit code to propagate. +endlocal & "%PYTHON%" "%PROG%" %*