diff --git a/fsl/utils/fslsub.py b/fsl/utils/fslsub.py index a3496b08f001a5ec1994ec3602f23130e2f89307..79e91a79cdf0ea020ea604ea7a489428eebe843a 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, ): """