mirror of https://github.com/python/cpython.git
On the Mac, create the Temporary Items folder if it does not exist yet.
(Jack)
This commit is contained in:
parent
9c93a69335
commit
57a0661cb8
|
@ -32,7 +32,7 @@ def gettempdir():
|
|||
import macfs, MACFS
|
||||
try:
|
||||
refnum, dirid = macfs.FindFolder(MACFS.kOnSystemDisk,
|
||||
MACFS.kTemporaryFolderType, 0)
|
||||
MACFS.kTemporaryFolderType, 1)
|
||||
dirname = macfs.FSSpec((refnum, dirid, '')).as_pathname()
|
||||
attempdirs.insert(0, dirname)
|
||||
except macfs.error:
|
||||
|
|
Loading…
Reference in New Issue