From 15e66320b713878c1281a575fd9a62abb8a778c4 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <MichielCottaar@protonmail.com>
Date: Thu, 11 Jun 2020 15:41:07 +0100
Subject: [PATCH] BUG: default to run fsl_sub in full current environment

---
 fsl/utils/fslsub.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsl/utils/fslsub.py b/fsl/utils/fslsub.py
index a3496b08f..79e91a79c 100644
--- a/fsl/utils/fslsub.py
+++ b/fsl/utils/fslsub.py
@@ -124,7 +124,7 @@ class SubmitParams(object):
         If not set explicitly by the user don't alter the environment in which the script will be submitted
         """
         if self.env is None:
-            self.env = {}
+            self.env = dict(os.environ)
 
     def as_flags(self, ):
         """
-- 
GitLab