@@ -515,8 +515,10 @@ def _create_launchers(self):
515515 """Create launchers"""
516516 self ._print ("Creating launchers" )
517517 self .create_launcher ('WinPython Command Prompt.exe' , 'cmd.ico' ,
518- command = '$SYSDIR\cmd.exe' ,
519- args = '/k' , workdir = '${WINPYDIR}' )
518+ command = r'${WINPYDIR}\Scripts\ptpython.exe' ,
519+ args = '/k' , workdir = r'${WINPYDIR}\Scripts' )
520+ # command='$SYSDIR\cmd.exe',
521+ # args='/k', workdir='${WINPYDIR}')
520522 self .create_launcher ('WinPython Interpreter.exe' , 'python.ico' )
521523 #self.create_launcher('IDLE (Python GUI).exe', 'python.ico',
522524 # args='idle.pyw',
@@ -688,19 +690,17 @@ def _create_batch_scripts(self):
688690
689691 self .create_batch_script ('make_winpython_movable.bat' ,r"""@echo off
690692call %~dp0env.bat
691- echo patch pip and current launchers fopr move
692- rem %WINPYDIR%\python.exe -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR%\Lib\site-packages\pip\_vendor\distlib\scripts.py', 'executable = get_executable()', 'executable = os.path.join(os.path.basename(get_executable()))' )"
693+ echo patch pip and current launchers for move
693694
694- %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip');dist.patch_all_shebang(to_movable=True)"
695+ %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=True );dist.patch_all_shebang(to_movable=True)"
695696pause
696697 """ )
697698
698699 self .create_batch_script ('make_winpython_fix.bat' ,r"""@echo off
699700call %~dp0env.bat
700701echo patch pip and current launchers for non-move
701- %WINPYDIR%\python.exe -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR%\Lib\site-packages\pip\_vendor\distlib\scripts.py', 'executable = os.path.join(os.path.basename(get_executable()))', 'executable = get_executable()' )"
702702
703- %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_all_shebang(to_movable=False)"
703+ %WINPYDIR%\python.exe -c "from winpython import wppm;dist=wppm.Distribution(r'%WINPYDIR%');dist.patch_standard_packages('pip', to_movable=False);dist. patch_all_shebang(to_movable=False)"
704704pause
705705 """ )
706706
0 commit comments