Skip to content

Commit 240c128

Browse files
committed
another follow up for 5ad518afd2. Allow use of OutputDirectory in scripts
1 parent 6088dba commit 240c128

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/plugins/processing/script/ScriptAlgorithm.py

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
from processing.outputs.OutputString import OutputString
5050
from processing.outputs.OutputHTML import OutputHTML
5151
from processing.outputs.OutputFile import OutputFile
52+
from processing.outputs.OutputDirectory import OutputDirectory
5253
from processing.outputs.OutputFactory import OutputFactory
5354
from processing.script.WrongScriptException import WrongScriptException
5455

@@ -204,6 +205,8 @@ def processParameterLine(self, line):
204205
out = OutputHTML()
205206
elif tokens[1].lower().strip().startswith('output file'):
206207
out = OutputFile()
208+
elif tokens[1].lower().strip().startswith('output directory'):
209+
out = OutputDirectory()
207210
elif tokens[1].lower().strip().startswith('output number'):
208211
out = OutputNumber()
209212
elif tokens[1].lower().strip().startswith('output string'):

0 commit comments

Comments
 (0)