We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
run_with_logging()
subprocess.PIPE
1 parent 3b9d1fa commit 5f97ccaCopy full SHA for 5f97cca
build_docs.py
@@ -246,7 +246,14 @@ def run_with_logging(cmd, cwd=None):
246
"""Like subprocess.check_call, with logging before the command execution."""
247
cmd = list(map(str, cmd))
248
logging.debug("Run: %s", shlex.join(cmd))
249
- with subprocess.Popen(cmd, cwd=cwd, encoding="utf-8") as p:
+ with subprocess.Popen(
250
+ cmd,
251
+ cwd=cwd,
252
+ stdin=subprocess.PIPE,
253
+ stderr=subprocess.STDOUT,
254
+ stdout=subprocess.PIPE,
255
+ encoding="utf-8",
256
+ ) as p:
257
try:
258
for line in (p.stdout or ()):
259
logging.debug(">>>> %s", line.rstrip())
0 commit comments