File tree 1 file changed +4
-4
lines changed
python/plugins/processing/tools
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def userFolder():
46
46
47
47
48
48
def defaultOutputFolder ():
49
- folder = os .path .join (userFolder (), " outputs" )
49
+ folder = os .path .join (userFolder (), ' outputs' )
50
50
if not QDir (folder ).exists ():
51
51
QDir ().mkpath (folder )
52
52
@@ -60,7 +60,7 @@ def isWindows():
60
60
def isMac ():
61
61
return sys .platform == 'darwin'
62
62
63
- _tempFolderSuffix = unicode ( uuid .uuid4 ()). replace ( '-' , '' )
63
+ _tempFolderSuffix = uuid .uuid4 (). hex
64
64
65
65
66
66
def tempFolder ():
@@ -96,7 +96,7 @@ def getTempFilenameInTempFolder(basename):
96
96
"""
97
97
98
98
path = tempFolder ()
99
- path = os .path .join (path , unicode ( uuid .uuid4 ()). replace ( '-' , '' ) )
99
+ path = os .path .join (path , uuid .uuid4 (). hex )
100
100
mkdir (path )
101
101
basename = removeInvalidChars (basename )
102
102
filename = os .path .join (path , basename )
@@ -108,7 +108,7 @@ def getTempDirInTempFolder():
108
108
"""
109
109
110
110
path = tempFolder ()
111
- path = os .path .join (path , unicode ( uuid .uuid4 ()). replace ( '-' , '' ) )
111
+ path = os .path .join (path , uuid .uuid4 (). hex )
112
112
mkdir (path )
113
113
return path
114
114
You can’t perform that action at this time.
0 commit comments