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

This commit is contained in:
Alexander Bruy 2017-02-09 14:25:53 +02:00
parent 5489f855a7
commit 2c188b2b0f

View File

@ -26,6 +26,9 @@ __copyright__ = '(C) 2016, Médéric Ribreux'
__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: