Commit 8453c0b4 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix: move quotes of arguments from util.parse_string_list to function.command_format function

parent 19ed21eb
......@@ -102,9 +102,9 @@ class Function(object):
This method requires the user to **explicitly** specify the `inputs`
and `outputs` to be used in the command string.
"""
inputs = ' '.join(parse_string_list(inputs))
outputs = ' '.join(parse_string_list(outputs))
arguments = ' '.join(parse_string_list(arguments))
inputs = '"' + '" "'.join(parse_string_list(inputs)) + '"'
outputs = '"' + '" "'.join(parse_string_list(outputs)) + '"'
arguments = '"' + '" "'.join(parse_string_list(arguments)) + '"'
return self.cmd_format.format(
executable = self.path,
EXE = self.path,
......
......@@ -147,7 +147,7 @@ def parse_string_list(string_list):
This is the same as :func:`parse_object_list` except it converts all
objects to strings.
"""
return ("\"" + str(o) + "\"" for o in parse_object_list(string_list))
return (str(o) for o in parse_object_list(string_list))
# Iterable utilities
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment