summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-02 05:51:16 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-02 05:51:16 (GMT)
commit7dcf84f2f8e55fe21130bcea5d3bf3eb7ccf9df7 (patch)
tree7cd5534c1758c07567304bab2bbc1697fb53e4a1 /Lib/tempfile.py
parent4eb0c003f8cd892800aa425fbde02ca9ecc76f34 (diff)
downloadcpython-7dcf84f2f8e55fe21130bcea5d3bf3eb7ccf9df7.zip
cpython-7dcf84f2f8e55fe21130bcea5d3bf3eb7ccf9df7.tar.gz
cpython-7dcf84f2f8e55fe21130bcea5d3bf3eb7ccf9df7.tar.bz2
Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.
SF patch #404564, Gregor Hoffleit.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index fe4d291..7a1fc26 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -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')