Skip to content
Permalink
Browse files

[processing] do not assume singleton Processing when defining temp fo…

…lder

fixes #13588
  • Loading branch information
volaya committed Oct 14, 2015
1 parent 5ca5566 commit 70bc957439b1eb2cc0ad576f3fdb91f535f16eb7
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/tools/system.py
@@ -17,6 +17,7 @@
***************************************************************************
"""


__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
@@ -52,9 +53,10 @@ def isWindows():
def isMac():
return sys.platform == 'darwin'

_tempFolderSuffix = unicode(uuid.uuid4()).replace('-', '')

def tempFolder():
tempDir = os.path.join(unicode(QDir.tempPath()), 'processing')
tempDir = os.path.join(unicode(QDir.tempPath()), 'processing' + _tempFolderSuffix)
if not QDir(tempDir).exists():
QDir().mkpath(tempDir)

0 comments on commit 70bc957

Please sign in to comment.
You can’t perform that action at this time.