File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
python/plugins/processing/script Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ def processParameterLine(self, line):
185
185
found = True
186
186
break
187
187
if found :
188
- param = ParameterTableField (tokens [0 ], tokens [ 0 ] , field )
188
+ param = ParameterTableField (tokens [0 ], desc , field )
189
189
elif tokens [1 ].lower ().strip ().startswith ('string' ):
190
190
default = tokens [1 ].strip ()[len ('string' ) + 1 :]
191
191
param = ParameterString (tokens [0 ], desc , default )
@@ -207,6 +207,9 @@ def processParameterLine(self, line):
207
207
out = OutputHTML ()
208
208
elif tokens [1 ].lower ().strip ().startswith ('output file' ):
209
209
out = OutputFile ()
210
+ subtokens = tokens [1 ].split (' ' )
211
+ if len (subtokens > 2 ):
212
+ out .ext = subtokens [2 ]
210
213
elif tokens [1 ].lower ().strip ().startswith ('output directory' ):
211
214
out = OutputDirectory ()
212
215
elif tokens [1 ].lower ().strip ().startswith ('output number' ):
@@ -218,7 +221,7 @@ def processParameterLine(self, line):
218
221
self .addParameter (param )
219
222
elif out is not None :
220
223
out .name = tokens [0 ]
221
- out .description = tokens [ 0 ]
224
+ out .description = desc
222
225
self .addOutput (out )
223
226
else :
224
227
raise WrongScriptException ('Could not load script:'
You can’t perform that action at this time.
0 commit comments