diff options
author | 2014-12-16 00:07:40 +0100 | |
---|---|---|
committer | 2014-12-16 00:07:40 +0100 | |
commit | cff8c8dd63384b8b38375168a4859fd0a78f3858 (patch) | |
tree | 9497b856723d2092c7477312d13a0ece2af39dce | |
parent | run rsync with /dev/null as stdin (diff) | |
download | R_overlay-cff8c8dd63384b8b38375168a4859fd0a78f3858.tar.gz R_overlay-cff8c8dd63384b8b38375168a4859fd0a78f3858.tar.bz2 R_overlay-cff8c8dd63384b8b38375168a4859fd0a78f3858.zip |
run commands without stdin by default
roverlay.tools->run_command(): let stdin default to /dev/null
-rw-r--r-- | roverlay/tools/runcmd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roverlay/tools/runcmd.py b/roverlay/tools/runcmd.py index 7561669..08e1bda 100644 --- a/roverlay/tools/runcmd.py +++ b/roverlay/tools/runcmd.py @@ -16,7 +16,7 @@ DEBUG_TO_CONSOLE = False def run_command_get_output ( cmdv, env, debug_to_console=False, use_filter=True, filter_func=None, - binary_stdout=False, stdin=None + binary_stdout=False, stdin=False ): # note that debug_to_console breaks calls that want to parse stdout pipe_target = None if debug_to_console else subprocess.PIPE @@ -46,9 +46,9 @@ def run_command_get_output ( return ( cmd_call, output ) # --- end of run_command_get_output (...) --- -def run_command ( cmdv, env, logger, return_success=False ): +def run_command ( cmdv, env, logger, return_success=False, **kwargs ): cmd_call, output = run_command_get_output ( - cmdv, env, DEBUG_TO_CONSOLE, use_filter=True + cmdv, env, DEBUG_TO_CONSOLE, use_filter=True, **kwargs ) # log stderr |