Skip to content
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
Avoid spawning console windows when running from .pyw
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.
  • Loading branch information
boppreh committed Oct 18, 2013
commit 3f277ba01f9a93fb040a365eef80f46ce6a9de85
1 change: 1 addition & 0 deletions git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ def execute(self, command,
stderr=PIPE,
stdout=PIPE,
close_fds=(os.name=='posix'),# unsupported on linux
shell=True,
**subprocess_kwargs
)
if as_process:
Expand Down