Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3f277ba

Browse filesBrowse files
committed
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.
1 parent 0b820e6 commit 3f277ba
Copy full SHA for 3f277ba

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎git/cmd.py

Copy file name to clipboardExpand all lines: git/cmd.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ def execute(self, command,
336336
stderr=PIPE,
337337
stdout=PIPE,
338338
close_fds=(os.name=='posix'),# unsupported on linux
339+
shell=True,
339340
**subprocess_kwargs
340341
)
341342
if as_process:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.