summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-08-29 14:55:03 (GMT)
committerGuido van Rossum <guido@python.org>2000-08-29 14:55:03 (GMT)
commite504c0c2dc6fabbab4f44dab21674d94f2b6df34 (patch)
tree62f840b02feb1532eb5dd00452cdede73a241e7e /Lib
parent7e1a1d0c8983628b8faba8085219111ac7482cc7 (diff)
downloadcpython-e504c0c2dc6fabbab4f44dab21674d94f2b6df34.zip
cpython-e504c0c2dc6fabbab4f44dab21674d94f2b6df34.tar.gz
cpython-e504c0c2dc6fabbab4f44dab21674d94f2b6df34.tar.bz2
Patch by tg@FreeBSD.org to try /var/tmp first.
This helps on 4.4BSD-based systems.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index eef6bff..5077835 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -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')