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: