Subzero: Change the echoing in shellcmd(). This makes it much easier to copy/paste the output. BUG= none R=jvoung@chromium.org Review URL: https://codereview.chromium.org/611983003
diff --git a/pydir/utils.py b/pydir/utils.py index 33b58e9..1141e3e 100644 --- a/pydir/utils.py +++ b/pydir/utils.py
@@ -3,11 +3,11 @@ import sys def shellcmd(command, echo=True): - if echo: print '[cmd]', command - if not isinstance(command, str): command = ' '.join(command) + if echo: print '[cmd]', command + stdout_result = subprocess.check_output(command, shell=True) if echo: sys.stdout.write(stdout_result) return stdout_result