Skip to content
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

Merged
merged 4 commits into from Aug 20, 2017

Conversation

andfoy
Copy link
Member

@andfoy andfoy commented Aug 17, 2017

Fixes #3529

@andfoy andfoy added this to the v3.2.2 milestone Aug 17, 2017
@andfoy andfoy self-assigned this Aug 17, 2017
@pep8speaks
Copy link

pep8speaks commented Aug 17, 2017

Hello @andfoy! Thanks for updating the PR.

Line 201:1: E265 block comment should start with '# '
Line 213:1: E265 block comment should start with '# '

Comment last updated on August 19, 2017 at 22:19 Hours UTC

@andfoy andfoy requested a review from ccordoba12 August 17, 2017 23:11
# Prevent subprocess.Popen calls to create visible console windows on Windows.
# See issue #4932
#==============================================================================

Copy link
Member

Choose a reason for hiding this comment

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

Remove blank

else:
creation_flag = 0 # Default value


Copy link
Member

Choose a reason for hiding this comment

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

Remove blank

super(SubprocessPopen, self).__init__(
*args, creationflags=creation_flag, **kwargs)


Copy link
Member

Choose a reason for hiding this comment

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

Remove blank

@ccordoba12 ccordoba12 changed the base branch from master to 3.x August 17, 2017 23:18
@ccordoba12
Copy link
Member

@andfoy, this is exactly what's needed. Did you test it locally?

@andfoy
Copy link
Member Author

andfoy commented Aug 17, 2017

@ccordoba12 Yes, I've tested it locally on my Windows VM, and it works as expected!

@ccordoba12
Copy link
Member

@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 if os.name == 'nt':

@andfoy
Copy link
Member Author

andfoy commented Aug 20, 2017

@ccordoba12 Actually the error was related to the named argument syntax.

@ccordoba12
Copy link
Member

Ok, this looks really good and all our tests are passing. Thanks @andfoy!

@ccordoba12 ccordoba12 merged commit d1a5cd4 into spyder-ide:3.x Aug 20, 2017
@andfoy andfoy deleted the no_window_popen_windows branch August 20, 2017 02:46
ccordoba12 added a commit that referenced this pull request Aug 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants