Skip to content

Commit

Permalink
[processing] use hex representation of uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Sep 14, 2016
1 parent 519e76c commit 2466083
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/tools/system.py
Expand Up @@ -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)

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

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


def tempFolder():
Expand Down Expand Up @@ -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)
Expand All @@ -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

Expand Down

0 comments on commit 2466083

Please sign in to comment.