summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-28 16:03:34 +0000
committerGuido van Rossum <guido@python.org>1998-04-28 16:03:34 +0000
commit65040b994da759f81b58a345b870446005a78cc6 (patch)
tree1d398a766040218b76fb2ba5055fd0664e97ac76 /Lib/tempfile.py
parentd35c8235315443be0ad980b4458b894c8e5ee5cc (diff)
downloadcpython-65040b994da759f81b58a345b870446005a78cc6.tar.gz
On the Mac, create the Temporary Items folder if it does not exist yet.
(Jack)
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
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: