We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f756b71 commit 1302437Copy full SHA for 1302437
nipype/interfaces/dcm2nii.py
@@ -4,6 +4,7 @@
4
import re
5
from copy import deepcopy
6
import itertools as it
7
+import glob
8
from glob import iglob
9
10
from ..utils.filemanip import split_filename
@@ -451,6 +452,7 @@ def _parse_stdout(self, stdout):
451
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
0 commit comments