File tree 1 file changed +10
-10
lines changed 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):
717
717
command = "$SYSDIR\cmd.exe" ,
718
718
args = r"/k cmd.bat" ,
719
719
)
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
+ )
727
726
728
727
self .create_launcher (
729
728
"WinPython Terminal.exe" ,
@@ -1468,9 +1467,10 @@ def _create_batch_scripts(self):
1468
1467
self .create_batch_script (
1469
1468
"WinPython_Terminal.bat" ,
1470
1469
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""'}"
1474
1474
exit
1475
1475
""" ,
1476
1476
)
You can’t perform that action at this time.
0 commit comments