Patch by tg@FreeBSD.org to try /var/tmp first.

This helps on 4.4BSD-based systems.
This commit is contained in:
Guido van Rossum 2000-08-29 14:55:03 +00:00
parent 7e1a1d0c89
commit e504c0c2dc
1 changed files with 1 additions and 1 deletions

View File

@ -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')