Skip to content
Permalink
Browse files

[processing] fix helper function from system module (fix #16128)

  • Loading branch information
alexbruy committed Feb 9, 2017
1 parent 5489f85 commit 2c188b2b0f00595ed4e2b3f0851250812b563456
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/algs/grass7/ext/r_reclass.py
@@ -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'):
@@ -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:

0 comments on commit 2c188b2

Please sign in to comment.
You can’t perform that action at this time.