Bug report #11990

Error when using ##output file in Processing scripts

Added by Fernando Rios about 8 years ago. Updated over 7 years ago.

Assignee:Victor Olaya
Affected QGIS version:2.6.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20196


Any script declaring an output using ##output_file fails with an 'Invalid Script' error when you try to add it to the Processing tool box.

The error is on line 215 of ScriptAlgorithm.py. The line reads
if len(subtokens > 2):
It should read
if len(subtokens) > 2:

Associated revisions

Revision c54cd92f
Added by Victor Olaya about 8 years ago

[processing] fixed handling of file outputs in scripts

Fixes #11990


#1 Updated by Victor Olaya about 8 years ago

  • Status changed from Open to Closed

#2 Updated by Giovanni Manghi over 7 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF