Skip to content

Commit 6c63ded

Browse files
author
David Ellis
committed
FIX: Changes .rsplit to os.path.splittext.
1 parent 5060fdc commit 6c63ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@ def _format_arg(self, name, spec, value):
19841984
basename = os.path.basename(value)
19851985
# whent the -mgz flag is specified, it assumes the mgz extension
19861986
if self.inputs.mgz:
1987-
prefix = basename.rstrip('.mgz')
1987+
prefix = os.path.splitext(basename)[0]
19881988
else:
19891989
prefix = basename
19901990
if prefix == 'aseg':

0 commit comments

Comments
 (0)