From c686dfb3817549742e62576ba1eddb06ea1bd44e Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Mon, 9 May 2016 10:04:56 +0100
Subject: [PATCH] Platform updates FSLDIR environment variable when
 platform.fsldir is set.

---
 fsl/utils/platform.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fsl/utils/platform.py b/fsl/utils/platform.py
index 9b95faf96..05bbd1a64 100644
--- a/fsl/utils/platform.py
+++ b/fsl/utils/platform.py
@@ -179,7 +179,8 @@ class Platform(notifier.Notifier):
         """Changes the value of the :attr:`fsldir` property, and notifies any
         registered listeners.
         """
-        self.__fsldir = value
+        self.__fsldir        = value
+        os.environ['FSLDIR'] = value
         self.notify()
 
         
-- 
GitLab