Skip to content

Commit

Permalink
[processing] do not assume singleton Processing when defining temp fo…
Browse files Browse the repository at this point in the history
…lder

fixes #13588
  • Loading branch information
volaya committed Oct 14, 2015
1 parent 5ca5566 commit 70bc957
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/tools/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
***************************************************************************
"""


__author__ = 'Victor Olaya'
__date__ = 'August 2012'
__copyright__ = '(C) 2012, Victor Olaya'
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 70bc957

Please sign in to comment.