Skip to content

Commit 5aab76a

Browse files
author
HuiQian Tan
committed
moved glob.escape
1 parent 561ccf3 commit 5aab76a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/interfaces/dcm2nii.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ def _parse_stdout(self, stdout):
452452
for line in stdout.split("\n"):
453453
if line.startswith("Convert "): # output
454454
fname = str(re.search(r"\S+/\S+", line).group(0))
455-
fname = glob.escape(fname)
456455
filenames.append(os.path.abspath(fname))
457456
return filenames
458457

@@ -496,4 +495,4 @@ def _list_outputs(self):
496495

497496
# https://stackoverflow.com/a/4829130
498497
def search_files(prefix, outtypes):
499-
return it.chain.from_iterable(iglob(prefix + outtype) for outtype in outtypes)
498+
return it.chain.from_iterable(iglob(glob.escape(prefix + outtype)) for outtype in outtypes)

0 commit comments

Comments
 (0)