From e504c0c2dc6fabbab4f44dab21674d94f2b6df34 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 29 Aug 2000 14:55:03 +0000 Subject: Patch by tg@FreeBSD.org to try /var/tmp first. This helps on 4.4BSD-based systems. --- Lib/tempfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tempfile.py b/Lib/tempfile.py index eef6bff..5077835 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -23,7 +23,7 @@ def gettempdir(): pwd = os.getcwd() except (AttributeError, os.error): pwd = os.curdir - attempdirs = ['/usr/tmp', '/tmp', pwd] + attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd] if os.name == 'nt': attempdirs.insert(0, 'C:\\TEMP') attempdirs.insert(0, '\\TEMP') -- cgit v0.12