Avoid spawning console windows when running from .pyw#126
Merged
Byron merged 1 commit intogitpython-developers:0.3from Nov 17, 2014
boppreh:patch-1
Merged
Avoid spawning console windows when running from .pyw#126Byron merged 1 commit intogitpython-developers:0.3from boppreh:patch-1
Byron merged 1 commit intogitpython-developers:0.3from
boppreh:patch-1
Conversation
By adding `shell=True,` to the list of Popen parameters, we avoid spawning console windows when scripts call this method from a windowless (.pyw) Python script.
Member
|
I didn't test it on windows either, but made sure a shell is only enforced on windows now. |
Member
|
Please note that with the release of v0.3.7, you will need to to set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm developing a small background application (Windows + PyQt) to track Git repositories.
The GitPython module works great, but when called from a windowless script (.pyw) each command spawns a console window. Those windows are empty and last only a second, but I think they should not be there at all.
I saw it was using
Popento call thegitexecutable and added ashell=Trueparameter to avoid spawning those windows.Be aware I haven't tested this on other machines or operating systems.