From ed067fb20afca8b6a1060d747ada11becabfdbcb Mon Sep 17 00:00:00 2001
From: Fidel Alfaro Almagro <falmagro@fmrib.ox.ac.uk>
Date: Fri, 10 Feb 2023 09:25:17 +0000
Subject: [PATCH] Improvements in run_command

---
 bip/utils/log_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bip/utils/log_utils.py b/bip/utils/log_utils.py
index d40dd90..5fa6e41 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())
-- 
GitLab