Skip to content

Commit 6a4847e

Browse files
committed
enclose all filenames in quotes to avoid problems spaces and special characters
1 parent c48a75f commit 6a4847e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydra/tasks/dcm2niix/utils.py

Lines changed: 3 additions & 3 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",

0 commit comments

Comments
 (0)