Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing][gdal] Ensure no filename clashes occur in writeLayerPara…
…meterToTextFile
  • Loading branch information
nyalldawson committed Feb 19, 2019
1 parent 342c093 commit e5a416e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/GdalUtils.py
Expand Up @@ -408,7 +408,7 @@ def parseCreationOptions(value):

@staticmethod
def writeLayerParameterToTextFile(filename, alg, parameters, parameter_name, context, quote=True, executing=False):
listFile = os.path.join(QgsProcessingUtils.tempFolder(), filename)
listFile = QgsProcessingUtils.generateTempFilename(filename)
with open(listFile, 'w') as f:
if executing:
layers = []
Expand Down

0 comments on commit e5a416e

Please sign in to comment.