From: Guido van Rossum Date: Tue, 29 Aug 2000 14:55:03 +0000 (+0000) Subject: Patch by tg@FreeBSD.org to try /var/tmp first. X-Git-Tag: v2.0b1~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e504c0c2dc6fabbab4f44dab21674d94f2b6df34;p=python Patch by tg@FreeBSD.org to try /var/tmp first. This helps on 4.4BSD-based systems. --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index eef6bffe11..5077835243 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')