diff options
Diffstat (limited to 'ick_helpers.py')
-rw-r--r-- | ick_helpers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ick_helpers.py b/ick_helpers.py index 9651060..d5bbdd3 100644 --- a/ick_helpers.py +++ b/ick_helpers.py @@ -44,9 +44,10 @@ class Exec: debug("RUN:", args, kwargs) x = subprocess.run(args, **kwargs) - if kwargs["stdout"] == subprocess.PIPE: - if x.stdout: - sys.stdout.write(x.stdout.decode("UTF-8")) + if x.stdout: + sys.stdout.write("STDOUT:\n%s" % x.stdout.decode("UTF-8")) + if x.stderr: + sys.stdout.write("STDERR:\n%s" % x.stderr.decode("UTF-8")) return x def get_stdout(self, *args, **kwargs): |