Skip to content

Commit 2c188b2

Browse files
committed
[processing] fix helper function from system module (fix #16128)
1 parent 5489f85 commit 2c188b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/plugins/processing/algs/grass7/ext/r_reclass.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
__revision__ = '$Format:%H$'
2727

2828

29+
from processing.tools.system import getTempFilename
30+
31+
2932
def checkParameterValuesBeforeExecuting(alg):
3033
""" Verify if we have the right parameters """
3134
if alg.getParameterValue(u'rules') and alg.getParameterValue(u'txtrules'):
@@ -39,7 +42,7 @@ def processCommand(alg):
3942
txtRules = alg.getParameterValue(u'txtrules')
4043
if txtRules:
4144
# Creates a temporary txt file
42-
tempRulesName = alg.getTempFilename()
45+
tempRulesName = getTempFilename()
4346

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

0 commit comments

Comments
 (0)