]> granicus.if.org Git - python/commitdiff
On the Mac, create the Temporary Items folder if it does not exist yet.
authorGuido van Rossum <guido@python.org>
Tue, 28 Apr 1998 16:03:34 +0000 (16:03 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Apr 1998 16:03:34 +0000 (16:03 +0000)
(Jack)

Lib/tempfile.py

index 6e87af1db7f942a12a553387112242f46cc74928..2c9ec9b0d1ed8e018b729ff4f9e5661681808365 100644 (file)
@@ -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: