We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda923d commit ae6927fCopy full SHA for ae6927f
nipype/interfaces/fsl/base.py
@@ -73,10 +73,7 @@ def version():
73
basedir = os.environ['FSLDIR']
74
except KeyError:
75
return None
76
- clout = CommandLine(command='cat',
77
- args='%s/etc/fslversion' % (basedir),
78
- terminal_output='allatonce').run()
79
- out = clout.runtime.stdout
+ out = open('%s/etc/fslversion' % (basedir)).read()
80
return out.strip('\n')
81
82
@classmethod
@@ -266,5 +263,4 @@ def no_fsl():
266
263
267
264
def no_fsl_course_data():
268
265
"""check if fsl_course data is present"""
269
-
270
return not (os.path.isdir(os.path.abspath('fsl_course_data')))
0 commit comments