From 70bc957439b1eb2cc0ad576f3fdb91f535f16eb7 Mon Sep 17 00:00:00 2001 From: volaya Date: Wed, 14 Oct 2015 13:13:33 +0200 Subject: [PATCH] [processing] do not assume singleton Processing when defining temp folder fixes #13588 --- python/plugins/processing/tools/system.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/plugins/processing/tools/system.py b/python/plugins/processing/tools/system.py index f89f569e224..94909060c00 100644 --- a/python/plugins/processing/tools/system.py +++ b/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)