Bug report #11990
Error when using ##output file in Processing scripts
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Victor Olaya | ||
Category: | Processing/Core | ||
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 |
Description
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
[processing] fixed handling of file outputs in scripts
Fixes #11990
History
#1 Updated by Victor Olaya almost 10 years ago
- Status changed from Open to Closed
Fixed in changeset c54cd92f8108d1fc3b4df027df5cbd094829f3b7.
#2 Updated by Giovanni Manghi over 9 years ago
- Category changed from 94 to Processing/Core