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

Skip to content

Commit 2442da2

Browse files
committed
Merge pull request #281 from stonebig/master
bug fix winpython Interpreter icon
2 parents edc7a08 + 67e0c50 commit 2442da2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

make.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ def _create_launchers(self):
501501
workdir='$EXEDIR\scripts')
502502

503503
self.create_launcher('WinPython Interpreter.exe', 'python.ico',
504-
command='wscript.exe',
505-
args= r'Noshell.vbs python.bat',
504+
command='$SYSDIR\cmd.exe',
505+
args= r'/k python.bat',
506506
workdir='$EXEDIR\scripts')
507507

508508
#self.create_launcher('IDLEX (students).exe', 'python.ico',
@@ -570,7 +570,7 @@ def _create_batch_scripts_initial(self):
570570
conv = lambda path: ";".join(['%WINPYDIR%\\'+pth for pth in path])
571571
path = conv(self.prepath) + ";%PATH%;" + conv(self.postpath)
572572
self.create_batch_script('env.bat', r"""@echo off
573-
set WINPYDIR=%~dp0..\\""" + self.python_name + r"""
573+
set WINPYDIR=%~dp0.."""+"\\" + self.python_name + r"""
574574
set WINPYVER=""" + self.winpyver + r"""
575575
set HOME=%~dp0..\settings
576576
set WINPYARCH=WIN32
@@ -794,7 +794,7 @@ def _create_batch_scripts(self):
794794
if exist "%WINPYDIR%\scripts\ptpython.exe" (
795795
"%WINPYDIR%\scripts\ptpython.exe" %*
796796
) else (
797-
"%WINPYDIR%\scripts\ptpython.exe" "%WINPYDIR%\python.exe" %*
797+
"%WINPYDIR%\python.exe" %*
798798
)
799799
""")
800800

0 commit comments

Comments
 (0)