We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 561ccf3 commit 5aab76aCopy full SHA for 5aab76a
nipype/interfaces/dcm2nii.py
@@ -452,7 +452,6 @@ def _parse_stdout(self, stdout):
452
for line in stdout.split("\n"):
453
if line.startswith("Convert "): # output
454
fname = str(re.search(r"\S+/\S+", line).group(0))
455
- fname = glob.escape(fname)
456
filenames.append(os.path.abspath(fname))
457
return filenames
458
@@ -496,4 +495,4 @@ def _list_outputs(self):
496
495
497
# https://stackoverflow.com/a/4829130
498
def search_files(prefix, outtypes):
499
- return it.chain.from_iterable(iglob(prefix + outtype) for outtype in outtypes)
+ return it.chain.from_iterable(iglob(glob.escape(prefix + outtype)) for outtype in outtypes)
0 commit comments