Skip to content
Snippets Groups Projects
Commit 80ae1d65 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Fixes to slightly shitty logic in previous commit

parent dbab31ee
No related branches found
No related tags found
No related merge requests found
...@@ -280,13 +280,16 @@ class Platform(notifier.Notifier): ...@@ -280,13 +280,16 @@ class Platform(notifier.Notifier):
"""Changes the value of the :attr:`fsldir` property, and notifies any """Changes the value of the :attr:`fsldir` property, and notifies any
registered listeners. registered listeners.
""" """
value = value.strip()
if value is not None:
if value == '': value = None value = value.strip()
if value is None: pass
elif value == '': value = None
elif not op.exists(value): value = None elif not op.exists(value): value = None
elif not op.isdir(value): value = None elif not op.isdir(value): value = None
self.__fsldir = value self.__fsldir = value
if value is not None: if value is not None:
os.environ['FSLDIR'] = value os.environ['FSLDIR'] = value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment