Skip to content

Commit 637b585

Browse files
committed
[BUGFIX][Processing] Script: get output file extension
1 parent 328754c commit 637b585

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/processing/script/ScriptAlgorithm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ def processOutputParameterToken(self, token):
278278
out = OutputHTML()
279279
elif token.lower().strip().startswith('file'):
280280
out = OutputFile()
281-
subtokens = token.split(' ')
282-
if len(subtokens) > 2:
283-
out.ext = subtokens[2]
281+
ext = token.strip()[len('file') + 1:]
282+
if ext:
283+
out.ext = ext
284284
elif token.lower().strip().startswith('directory'):
285285
out = OutputDirectory()
286286
elif token.lower().strip().startswith('number'):

0 commit comments

Comments
 (0)