Navigation Menu

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 bcf136b commit 4db8c9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/script/ScriptAlgorithm.py
Expand Up @@ -321,9 +321,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 4db8c9a

Please sign in to comment.