util.subprocess =============== .. py:module:: util.subprocess Module Contents --------------- .. py:function:: subprocess_run(cmd, *, skip_frames=0, **kwargs) A simple wrapper for the real subprocess.run() that logs the command used. .. py:function:: subprocess_Popen(cmd, *, skip_frames=0, **kwargs) A simple wrapper for the real subprocess.Popen() that logs the command used. .. py:function:: subprocess_stream(cmd, *, check=False, skip_frames=0, **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.