Skip to content

Commit 3f277ba

Browse 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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git/cmd.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy