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):
"""Changes the value of the :attr:`fsldir` property, and notifies any
registered listeners.
"""
value = value.strip()
if value == '': value = None
if value is not None:
value = value.strip()
if value is None: pass
elif value == '': value = None
elif not op.exists(value): value = None
elif not op.isdir(value): value = None
self.__fsldir = value
self.__fsldir = value
if value is not None:
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