We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f56be03 commit cd4b9feCopy full SHA for cd4b9fe
src/sextante/core/SextanteUtils.py
@@ -30,9 +30,10 @@ def tempFolder():
30
31
@staticmethod
32
def setTempOutput(out, alg):
33
- seconds = str(time.time())
34
ext = out.getDefaultFileExtension(alg)
35
- filename = SextanteUtils.tempFolder() + os.sep + seconds + str(SextanteUtils.NUM_EXPORTED) + "." + ext
+ validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
+ safeCmdName = ''.join(c for c in alg.commandLineName() if c in validChars)
36
+ filename = SextanteUtils.tempFolder() + os.sep + safeCmdName + str(SextanteUtils.NUM_EXPORTED) + "." + ext
37
out.value = filename
38
SextanteUtils.NUM_EXPORTED += 1
39
0 commit comments