From: Guido van Rossum Date: Fri, 2 Mar 2001 05:51:16 +0000 (+0000) Subject: Search /tmp before /var/tmp and /usr/tmp -- this seems preferred. X-Git-Tag: v2.1b1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dcf84f2f8e55fe21130bcea5d3bf3eb7ccf9df7;p=python Search /tmp before /var/tmp and /usr/tmp -- this seems preferred. SF patch #404564, Gregor Hoffleit. --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index fe4d291b05..7a1fc26c1b 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -21,7 +21,7 @@ def gettempdir(): pwd = os.getcwd() except (AttributeError, os.error): pwd = os.curdir - attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd] + attempdirs = ['/tmp', '/var/tmp', '/usr/tmp', pwd] if os.name == 'nt': attempdirs.insert(0, 'C:\\TEMP') attempdirs.insert(0, '\\TEMP')