From 3568f7db482f87b23839d64f12d09d3933b2f6bf Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Wed, 18 Jan 2017 16:26:23 +0000
Subject: [PATCH] Fix to FSL version check

---
 fsl/utils/platform.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/fsl/utils/platform.py b/fsl/utils/platform.py
index 93c8fa3ec..73462188a 100644
--- a/fsl/utils/platform.py
+++ b/fsl/utils/platform.py
@@ -295,12 +295,12 @@ class Platform(notifier.Notifier):
         if value is not None:
             os.environ['FSLDIR'] = value
 
-        # Set the FSL version field if we can
-        versionFile = op.join(value, 'etc', 'fslversion')
+            # Set the FSL version field if we can
+            versionFile = op.join(value, 'etc', 'fslversion')
 
-        if op.exists(versionFile):
-            with open(versionFile, 'rt') as f:
-                self.__fslVersion = f.read().strip()
+            if op.exists(versionFile):
+                with open(versionFile, 'rt') as f:
+                    self.__fslVersion = f.read().strip()
             
         self.notify()
 
-- 
GitLab