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
FSL
fslpy
Commits
e7c48926
Commit
e7c48926
authored
Mar 27, 2020
by
Paul McCarthy
🚵
Browse files
BF: Minor fixes
parent
06a86eb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/fslsub.py
View file @
e7c48926
...
...
@@ -156,10 +156,10 @@ class SubmitParams(object):
(set to None to include everything)
:return: the group the arguments got added to
"""
from
fsl.utils.run
import
runfsl
from
fsl.utils.run
import
runfsl
,
FSLNotPresent
try
:
fsl_sub_run
,
_
=
runfsl
(
'fsl_sub'
,
exitcode
=
True
)
except
FileNotFoundError
:
except
(
FileNotFoundError
,
FSLNotPresent
)
:
warnings
.
warn
(
'fsl_sub was not found'
)
return
doc_lines
=
fsl_sub_run
.
splitlines
()
...
...
@@ -183,7 +183,7 @@ class SubmitParams(object):
break
elif
line
.
strip
().
startswith
(
flag
):
explanation
=
[
line
[
nspaces
:].
strip
()]
if
len
(
explanation
)
==
0
:
if
(
explanation
is
None
)
or
(
len
(
explanation
)
==
0
)
:
return
'documentation not found'
return
' '
.
join
(
explanation
)
...
...
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