Skip to content

Commit

Permalink
[processing] fix helper function from system module (fix #16128)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 9, 2017
1 parent 5489f85 commit 2c188b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_reclass.py
Expand Up @@ -26,6 +26,9 @@
__revision__ = '$Format:%H$'


from processing.tools.system import getTempFilename


def checkParameterValuesBeforeExecuting(alg):
""" Verify if we have the right parameters """
if alg.getParameterValue(u'rules') and alg.getParameterValue(u'txtrules'):
Expand All @@ -39,7 +42,7 @@ def processCommand(alg):
txtRules = alg.getParameterValue(u'txtrules')
if txtRules:
# Creates a temporary txt file
tempRulesName = alg.getTempFilename()
tempRulesName = getTempFilename()

# Inject rules into temporary txt file
with open(tempRulesName, "w") as tempRules:
Expand Down

0 comments on commit 2c188b2

Please sign in to comment.