From 12765c8f0d922db5326a867b357043fdef7cbcd5 Mon Sep 17 00:00:00 2001 From: stonebig Date: Fri, 22 Apr 2016 18:41:53 +0200 Subject: [PATCH] preserve "python" standard behavior --- make.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/make.py b/make.py index ca07b8f1..1d36d4a7 100644 --- a/make.py +++ b/make.py @@ -490,7 +490,7 @@ def _create_launchers(self): self.create_launcher('WinPython Interpreter.exe', 'python.ico', command='$SYSDIR\cmd.exe', - args= r'/k python.bat') + args= r'/k winpython.bat') #self.create_launcher('IDLEX (students).exe', 'python.ico', # command='$SYSDIR\cmd.exe', @@ -768,6 +768,12 @@ def _create_batch_scripts(self): self.create_batch_script('python.bat',r"""@echo off call "%~dp0env_for_icons.bat" cd/D "%WINPYWORKDIR%" +rem backward compatibility for python command-line users +"%WINPYDIR%\python.exe" %* +""") + self.create_batch_script('winpython.bat',r"""@echo off +call "%~dp0env_for_icons.bat" +cd/D "%WINPYWORKDIR%" rem backward compatibility for non-ptpython users if exist "%WINPYDIR%\scripts\ptpython.exe" ( "%WINPYDIR%\scripts\ptpython.exe" %*