Commit cc5d6ffc authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: runfsl errors on non-FSL commands

parent a4b3363e
......@@ -3,6 +3,7 @@
# run.py - Functions for running shell commands
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
# Author: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
#
"""This module provides some functions for running shell commands.
......@@ -358,6 +359,12 @@ def runfsl(*args, **kwargs):
args[0] = cmdpath
break
# error if the command cannot
# be found in a FSL directory
else:
raise FileNotFoundError('FSL tool {} not found (checked {})'.format(
args[0], ', '.join(prefixes)))
return run(*args, **kwargs)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment