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

Skip to content

@georgejean tweaks for powershell #439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ def _create_batch_scripts_initial(self):
$host.ui.rawui.WindowSize = $size
}
# Windows10 yelling at us with 150 40 6000
Set-WindowSize 210 40 6000
# no more needed ?
# Set-WindowSize 195 40 6000

### Colorize to distinguish
#$host.ui.RawUI.BackgroundColor = "DarkBlue"
Expand All @@ -719,12 +720,13 @@ def _create_batch_scripts_initial(self):
self.create_batch_script('cmd_ps.bat', r"""@echo off
rem safe bet
call "%~dp0env_for_icons.bat"
Powershell.exe -executionpolicy RemoteSigned -noexit -file "%~dp0WinPython_PS_Prompt.ps1"
Powershell.exe -Command "& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -noexit -File""%~dp0WinPython_PS_Prompt.ps1""'}"
""")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

II think exit must be inserted on this line (line above 724) in order to exit the cmd.exe (the powershell console remains open), see line 729.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups ! I forgot it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but it seems not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you're right... in doubts, I add it


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

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