Skip to content

Commit 1ef46f9

Browse files
author
stonebig
committed
@georgejean tweaks for powershell
1 parent fc1e7ba commit 1ef46f9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

make.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,8 @@ def _create_batch_scripts_initial(self):
708708
$host.ui.rawui.WindowSize = $size
709709
}
710710
# Windows10 yelling at us with 150 40 6000
711-
Set-WindowSize 210 40 6000
711+
# no more needed ?
712+
# Set-WindowSize 195 40 6000
712713
713714
### Colorize to distinguish
714715
#$host.ui.RawUI.BackgroundColor = "DarkBlue"
@@ -719,12 +720,13 @@ def _create_batch_scripts_initial(self):
719720
self.create_batch_script('cmd_ps.bat', r"""@echo off
720721
rem safe bet
721722
call "%~dp0env_for_icons.bat"
722-
Powershell.exe -executionpolicy RemoteSigned -noexit -file "%~dp0WinPython_PS_Prompt.ps1"
723+
Powershell.exe -Command "& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -noexit -File""%~dp0WinPython_PS_Prompt.ps1""'}"
723724
""")
724725

725726
self.create_batch_script('WinPython_Interpreter_PS.bat', r"""@echo off
726727
rem no safe bet (for comparisons)
727-
Powershell.exe -executionpolicy RemoteSigned -noexit -file "%~dp0WinPython_PS_Prompt.ps1"
728+
Powershell.exe -Command "& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -noexit -File ""%~dp0WinPython_PS_Prompt.ps1""'}"
729+
exit
728730
""")
729731

730732
self.create_batch_script('env_for_icons.bat', r"""@echo off

0 commit comments

Comments
 (0)