mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
On the Mac, create the Temporary Items folder if it does not exist yet.
(Jack)
This commit is contained in:
parent
9c93a69335
commit
57a0661cb8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue