8000 Merge pull request #1318 from stonebig/master · winpython/winpython@dbcd40d · GitHub
[go: up one dir, main page]

Skip to content

Commit dbcd40d

Browse files
authored
Merge pull request #1318 from stonebig/master
fix "WinPython Terminal" Icon
2 parents b64af00 + 3d636a9 commit dbcd40d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

make.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -717,13 +717,12 @@ def _create_launchers(self):
717717
command="$SYSDIR\cmd.exe",
718718
args=r"/k cmd.bat",
719719
)
720-
# removed to reduce number of icons
721-
#self.create_launcher(
722-
# "WinPython Powershell Prompt.exe",
723-
# "powershell.ico",
724-
# command="$SYSDIR\cmd.exe",
725-
# args=r"/k cmd_ps.bat",
726-
#)
720+
self.create_launcher(
721+
"WinPython Powershell Prompt.exe",
722+
"powershell.ico",
723+
command="$SYSDIR\cmd.exe",
724+
args=r"/k cmd_ps.bat",
725+
)
727726

728727
self.create_launcher(
729728
"WinPython Terminal.exe",
@@ -1468,9 +1467,10 @@ def _create_batch_scripts(self):
14681467
self.create_batch_script(
14691468
"WinPython_Terminal.bat",
14701469
r"""@echo off
1471-
call "%~dp0env_for_icons.bat" %*
1472-
if not "%WINPYWORKDIR%"=="%WINPYWORKDIR1%" cd %WINPYWORKDIR1%
1473-
"%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe"
1470+
rem call "%~dp0env_for_icons.bat" %*
1471+
rem if not "%WINPYWORKDIR%"=="%WINPYWORKDIR1%" cd %WINPYWORKDIR1%
1472+
rem "%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe"
1473+
Powershell.exe -Command "& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -noexit -File ""%~dp0WinPython_PS_Prompt.ps1""'}"
14741474
exit
14751475
""",
14761476
)

0 commit comments

Comments
 (0)
0