mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing] fix helper function from system module (fix #16128)
This commit is contained in:
parent
5489f855a7
commit
2c188b2b0f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user