Commit 7dcf84f2 authored by Guido van Rossum's avatar Guido van Rossum

Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.

SF patch #404564, Gregor Hoffleit.
parent 4eb0c003
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment