Skip to content

Commit 7a73e50

Browse files
committed
[processing][gdal] Ensure no filename clashes occur in writeLayerParameterToTextFile
(cherry picked from commit e5a416e)
1 parent e9b2e14 commit 7a73e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/algs/gdal/GdalUtils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def parseCreationOptions(value):
408408

409409
@staticmethod
410410
def writeLayerParameterToTextFile(filename, alg, parameters, parameter_name, context, quote=True, executing=False):
411-
listFile = os.path.join(QgsProcessingUtils.tempFolder(), filename)
411+
listFile = QgsProcessingUtils.generateTempFilename(filename)
412412
with open(listFile, 'w') as f:
413413
if executing:
414414
layers = []

0 commit comments

Comments
 (0)