diff --git a/bip/utils/log_utils.py b/bip/utils/log_utils.py index d40dd9093334ff27d49f724f1374e4fb7f12e8cc..5fa6e4127fd7f6f1ac25eb467e81e5e8e52586c8 100755 --- a/bip/utils/log_utils.py +++ b/bip/utils/log_utils.py @@ -22,10 +22,10 @@ from subprocess import check_output from fsl import wrappers -def run_command(logger, command, env): +def run_command(logger, command, **kwargs): try: logger.info('COMMAND TO RUN: \t' + command.strip()) - job_output = check_output(command, shell=True, env=env).decode('UTF-8') + job_output = check_output(command,shell=True,**kawargs).decode('UTF-8') logger.info('COMMAND OUTPUT: \t' + job_output.strip()) except Exception as e: logger.error('Exception raised during: \t' + command.strip())