-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Prevent subprocess.Popen calls to create visible consoles on Windows. #4992
Conversation
Hello @andfoy! Thanks for updating the PR.
Comment last updated on August 19, 2017 at 22:19 Hours UTC |
spyder/utils/site/sitecustomize.py
Outdated
# Prevent subprocess.Popen calls to create visible console windows on Windows. | ||
# See issue #4932 | ||
#============================================================================== | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove blank
spyder/utils/site/sitecustomize.py
Outdated
else: | ||
creation_flag = 0 # Default value | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove blank
spyder/utils/site/sitecustomize.py
Outdated
super(SubprocessPopen, self).__init__( | ||
*args, creationflags=creation_flag, **kwargs) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove blank
@andfoy, this is exactly what's needed. Did you test it locally? |
@ccordoba12 Yes, I've tested it locally on my Windows VM, and it works as expected! |
@andfoy, let's apply this to Windows only. I don't want to touch Linux or macOS with this because they don't have this problem. So please put everything under |
@ccordoba12 Actually the error was related to the named argument syntax. |
Ok, this looks really good and all our tests are passing. Thanks @andfoy! |
Fixes #3529