From: Guido van Rossum Date: Tue, 28 Apr 1998 16:03:34 +0000 (+0000) Subject: On the Mac, create the Temporary Items folder if it does not exist yet. X-Git-Tag: v1.5.2a1~797 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57a0661cb8f75fc984eff2dabd39f105dcbff33b;p=python On the Mac, create the Temporary Items folder if it does not exist yet. (Jack) --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 6e87af1db7..2c9ec9b0d1 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: