Skip to content

Commit

Permalink
[BUGFIX][Processing] Script: get output file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jan 26, 2017
1 parent 328754c commit 637b585
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/script/ScriptAlgorithm.py
Expand Up @@ -278,9 +278,9 @@ def processOutputParameterToken(self, token):
out = OutputHTML()
elif token.lower().strip().startswith('file'):
out = OutputFile()
subtokens = token.split(' ')
if len(subtokens) > 2:
out.ext = subtokens[2]
ext = token.strip()[len('file') + 1:]
if ext:
out.ext = ext
elif token.lower().strip().startswith('directory'):
out = OutputDirectory()
elif token.lower().strip().startswith('number'):
Expand Down

0 comments on commit 637b585

Please sign in to comment.