Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eede025

Browse files
committed
Merge pull request #317 from stonebig/master
preserve "python" standard behavior
2 parents b1c4c43 + 12765c8 commit eede025

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

make.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def _create_launchers(self):
490490

491491
self.create_launcher('WinPython Interpreter.exe', 'python.ico',
492492
command='$SYSDIR\cmd.exe',
493-
args= r'/k python.bat')
493+
args= r'/k winpython.bat')
494494

495495
#self.create_launcher('IDLEX (students).exe', 'python.ico',
496496
# command='$SYSDIR\cmd.exe',
@@ -768,6 +768,12 @@ def _create_batch_scripts(self):
768768
self.create_batch_script('python.bat',r"""@echo off
769769
call "%~dp0env_for_icons.bat"
770770
cd/D "%WINPYWORKDIR%"
771+
rem backward compatibility for python command-line users
772+
"%WINPYDIR%\python.exe" %*
773+
""")
774+
self.create_batch_script('winpython.bat',r"""@echo off
775+
call "%~dp0env_for_icons.bat"
776+
cd/D "%WINPYWORKDIR%"
771777
rem backward compatibility for non-ptpython users
772778
if exist "%WINPYDIR%\scripts\ptpython.exe" (
773779
"%WINPYDIR%\scripts\ptpython.exe" %*

0 commit comments

Comments
 (0)