[processing] fixed handling of file outputs in scripts

Fixes #11990
This commit is contained in:
volaya 2015-01-15 08:28:02 +01:00
parent 73f184e2e8
commit c54cd92f81

View File

@ -212,7 +212,7 @@ class ScriptAlgorithm(GeoAlgorithm):
elif tokens[1].lower().strip().startswith('output file'):
out = OutputFile()
subtokens = tokens[1].split(' ')
if len(subtokens > 2):
if len(subtokens) > 2:
out.ext = subtokens[2]
elif tokens[1].lower().strip().startswith('output directory'):
out = OutputDirectory()