util.subprocess
Module Contents
- util.subprocess.subprocess_run(cmd, **kwargs)
A simple wrapper for the real subprocess.run() that logs the command used.
- util.subprocess.subprocess_Popen(cmd, **kwargs)
A simple wrapper for the real subprocess.Popen() that logs the command used.
- util.subprocess.subprocess_stream(cmd, check=False, **kwargs)
Run ‘cmd’ via subprocess.Popen() and return an iterator over any lines the command outputs on stdout, in text mode.
With ‘check’ set to True, raise a CalledProcessError if the ‘cmd’ failed.
To capture both stdout and stderr as yielded lines, use subprocess.STDOUT.