Skip to content

Commit e006985

Browse files
committed
fix: ensure absolute path
1 parent bbbeef4 commit e006985

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nipype/interfaces/dcm2nii.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ def _parse_stdout(self, stdout):
421421
for line in stdout.split("\n"):
422422
if line.startswith("Convert "): # output
423423
fname = str(re.search('\S+/\S+', line).group(0))
424+
fname = os.path.abspath(fname)
424425
outtypes = (".nii", ".nii.gz", ".bval", ".bvec", ".json")
425426
# search for relevant files, and sort accordingly
426427
for fl in search_files(fname, outtypes):

0 commit comments

Comments
 (0)