Quote Params for user script. Fixes #185

Might make this a switchable option if this works.
This commit is contained in:
Clinton Hall 2013-11-15 06:40:30 +10:30
commit 51fb494496

View file

@ -276,13 +276,13 @@ def external_script(outputDestination):
command = [user_script] command = [user_script]
for param in user_script_param: for param in user_script_param:
if param == "FN": if param == "FN":
command.append(file) command.append('"' + file + '"')
continue continue
elif param == "FP": elif param == "FP":
command.append(filePath) command.append('"' + filePath + '"')
continue continue
elif param == "DN": elif param == "DN":
command.append(dirpath) command.append('"' + dirpath + '"')
continue continue
else: else:
command.append(param) command.append(param)