Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evan Edmond
fslpy
Commits
d7c678c3
Commit
d7c678c3
authored
Mar 13, 2020
by
Paul McCarthy
🚵
Browse files
RF: prepareArgs should use shlex
parent
8c3371d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/run.py
View file @
d7c678c3
...
...
@@ -20,6 +20,7 @@
import
sys
import
shlex
import
logging
import
threading
import
contextlib
...
...
@@ -81,7 +82,7 @@ def prepareArgs(args):
# Argument was a command string
if
isinstance
(
args
[
0
],
six
.
string_types
):
args
=
args
[
0
]
.
split
(
)
args
=
shlex
.
split
(
args
[
0
])
# Argument was an unpacked sequence
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment