mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.
SF patch #404564, Gregor Hoffleit.
This commit is contained in:
parent
4eb0c003f8
commit
7dcf84f2f8
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user