summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-28 16:03:34 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-28 16:03:34 (GMT)
commit57a0661cb8f75fc984eff2dabd39f105dcbff33b (patch)
tree9be273736bd46ac61b1521b1d3d3dde65637fb00 /Lib/tempfile.py
parent9c93a69335117c7e54c8962d3adc7e17a695f1b0 (diff)
downloadcpython-57a0661cb8f75fc984eff2dabd39f105dcbff33b.zip
cpython-57a0661cb8f75fc984eff2dabd39f105dcbff33b.tar.gz
cpython-57a0661cb8f75fc984eff2dabd39f105dcbff33b.tar.bz2
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 6e87af1..2c9ec9b 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: