Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evan Edmond
fslpy
Commits
cc5d6ffc
Commit
cc5d6ffc
authored
Mar 19, 2020
by
Paul McCarthy
🚵
Browse files
RF: runfsl errors on non-FSL commands
parent
a4b3363e
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/run.py
View file @
cc5d6ffc
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment