diff --git a/Lib/tempfile.py b/Lib/tempfile.py index fe4d291b059..7a1fc26c1b5 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')