Skip to content
Permalink
Browse files

[processing] use hex representation of uuid

(cherry picked from commit 2466083)
  • Loading branch information
alexbruy committed Sep 14, 2016
1 parent 9327e90 commit 769fe65d95598e984166c746bf76f31f76f3e716
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/tools/system.py
@@ -46,7 +46,7 @@ def userFolder():


def defaultOutputFolder():
folder = os.path.join(userFolder(), "outputs")
folder = os.path.join(userFolder(), 'outputs')
if not QDir(folder).exists():
QDir().mkpath(folder)

@@ -60,7 +60,7 @@ def isWindows():
def isMac():
return sys.platform == 'darwin'

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


def tempFolder():
@@ -96,7 +96,7 @@ def getTempFilenameInTempFolder(basename):
"""

path = tempFolder()
path = os.path.join(path, unicode(uuid.uuid4()).replace('-', ''))
path = os.path.join(path, uuid.uuid4().hex)
mkdir(path)
basename = removeInvalidChars(basename)
filename = os.path.join(path, basename)
@@ -108,7 +108,7 @@ def getTempDirInTempFolder():
"""

path = tempFolder()
path = os.path.join(path, unicode(uuid.uuid4()).replace('-', ''))
path = os.path.join(path, uuid.uuid4().hex)
mkdir(path)
return path

0 comments on commit 769fe65

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