File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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""'}"
14741474exit
14751475""" ,
14761476 )
You can’t perform that action at this time.
0 commit comments