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
02629feb
Commit
02629feb
authored
Nov 17, 2016
by
Paul McCarthy
Browse files
imcp fail if source doesn't exist
parent
7983846c
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/imcp.py
View file @
02629feb
...
...
@@ -75,6 +75,10 @@ def imcp(src,
# again to get its extension
srcBase
,
srcExt
=
fslimage
.
splitExt
(
src
)
if
not
op
.
exists
(
src
):
raise
fslpath
.
PathError
(
'imcp error - source path '
'does not exist: {}'
.
format
(
src
))
# Figure out the destination file
# extension/type. If useDefaultExt
# is True, we use the default
...
...
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