From 57a0661cb8f75fc984eff2dabd39f105dcbff33b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 Apr 1998 16:03:34 +0000 Subject: [PATCH] On the Mac, create the Temporary Items folder if it does not exist yet. (Jack) --- Lib/tempfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 6e87af1db7f..2c9ec9b0d1e 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -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: