diff --git a/tests/test_fslsub.py b/tests/test_fslsub.py index 1268a67f588cd977265e468bf14f89b8e9950d71..026cb66d8a421fde1ef492bb7adb897e2fbf9ae2 100644 --- a/tests/test_fslsub.py +++ b/tests/test_fslsub.py @@ -15,7 +15,7 @@ import contextlib import argparse import pytest -import fsl +import fsl.version as fv from fsl.utils import fslsub, run from fsl.utils.tempdir import tempdir @@ -63,7 +63,7 @@ with open('{{}}.o{{}}'.format(cmd, jobid), 'w') as stdout, \ print(str(jobid)) sys.exit(0) -""".format(op.dirname(fsl.__file__)).strip() +""".format(op.dirname(op.join(fv.__file__, '..'))).strip() @contextlib.contextmanager def fslsub_mockFSLDIR():