added all params to external script. fixes #185

This commit is contained in:
clinton-hall 2013-11-10 07:07:36 +10:30
commit 05f7f90b15
2 changed files with 7 additions and 4 deletions

View file

@ -278,12 +278,15 @@ def external_script(outputDestination):
if param == "FN":
command.append(file)
continue
if param == "FP":
elif param == "FP":
command.append(filePath)
continue
if param == "DN":
elif param == "DN":
command.append(dirpath)
continue
else:
command.append(param)
continue
Logger.info("Running script %s on file %s.", command, filePath)
try:
p = Popen(command)