Skip to content

Commit bf5d7e0

Browse files
authored
Merge pull request #4 from tclose/quote-file-paths
Enclose all filenames in quotes
2 parents c48a75f + 3f76f68 commit bf5d7e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydra/tasks/dcm2niix/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"in_dir",
99
Directory,
1010
{
11-
"argstr": "{in_dir}",
11+
"argstr": "'{in_dir}'",
1212
"position": -1,
1313
"help_string": ("The directory containing the DICOMs to be converted"),
1414
"mandatory": True,
@@ -18,7 +18,7 @@
1818
"out_dir",
1919
str,
2020
{
21-
"argstr": "-o {out_dir}",
21+
"argstr": "-o '{out_dir}'",
2222
"help_string": "output directory",
2323
"mandatory": True,
2424
},
@@ -27,7 +27,7 @@
2727
"filename",
2828
str,
2929
"out_file",
30-
{"argstr": "-f {filename}", "help_string": "The output name for the file"},
30+
{"argstr": "-f '{filename}'", "help_string": "The output name for the file"},
3131
),
3232
(
3333
"compress",
@@ -322,7 +322,7 @@ class Dcm2Niix(ShellCommandTask):
322322
>>> task.inputs.out_dir = "test-data/output"
323323
>>> task.inputs.compress = "y"
324324
>>> task.cmdline
325-
'dcm2niix -o test-data/output -f out_file -z y test-data/test_dicoms'
325+
"dcm2niix -o 'test-data/output' -f 'out_file' -z y 'test-data/test_dicoms'"
326326
"""
327327

328328
input_spec = Dcm2NiixInputSpec

0 commit comments

Comments
 (0)