Commit 57a0661c authored by Guido van Rossum's avatar Guido van Rossum

On the Mac, create the Temporary Items folder if it does not exist yet.

(Jack)
parent 9c93a693
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment