Commit e504c0c2 authored by Guido van Rossum's avatar Guido van Rossum

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

This helps on 4.4BSD-based systems.
parent 7e1a1d0c
......@@ -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')
......
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