mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ def gettempdir():
|
||||||
pwd = os.getcwd()
|
pwd = os.getcwd()
|
||||||
except (AttributeError, os.error):
|
except (AttributeError, os.error):
|
||||||
pwd = os.curdir
|
pwd = os.curdir
|
||||||
attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd]
|
attempdirs = ['/tmp', '/var/tmp', '/usr/tmp', pwd]
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
attempdirs.insert(0, 'C:\\TEMP')
|
attempdirs.insert(0, 'C:\\TEMP')
|
||||||
attempdirs.insert(0, '\\TEMP')
|
attempdirs.insert(0, '\\TEMP')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue