mirror of https://github.com/python/cpython.git
Patch by tg@FreeBSD.org to try /var/tmp first.
This helps on 4.4BSD-based systems.
This commit is contained in:
parent
7e1a1d0c89
commit
e504c0c2dc
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue