Removed args from run_program
* It's been deprecated for ages * Fixes issue #79
This commit is contained in:
parent
1095e15643
commit
91649f5ee7
1 changed files with 1 additions and 5 deletions
|
|
@ -490,12 +490,8 @@ def print_log(message='', end='\n', timestamp=True):
|
|||
end = end))
|
||||
|
||||
|
||||
def run_program(cmd, args=[], check=True, pipe=True, shell=False, **kwargs):
|
||||
def run_program(cmd, check=True, pipe=True, shell=False, **kwargs):
|
||||
"""Run program and return a subprocess.CompletedProcess object."""
|
||||
if args:
|
||||
# Deprecated so let's raise an exception to find & fix all occurances
|
||||
print_error('ERROR: Using args is no longer supported.')
|
||||
raise Exception
|
||||
cmd = [c for c in cmd if c]
|
||||
if shell:
|
||||
cmd = ' '.join(cmd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue