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]
for param in user_script_param:
if param == "FN":
command.append(file)
command.append('"' + file + '"')
continue
elif param == "FP":
command.append(filePath)
command.append('"' + filePath + '"')
continue
elif param == "DN":
command.append(dirpath)
command.append('"' + dirpath + '"')
continue
else:
command.append(param)