]> granicus.if.org Git - python/commitdiff
Search /tmp before /var/tmp and /usr/tmp -- this seems preferred.
authorGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 05:51:16 +0000 (05:51 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 05:51:16 +0000 (05:51 +0000)
SF patch #404564, Gregor Hoffleit.

Lib/tempfile.py

index fe4d291b059f3395efd8abe4ddf9655a30fd5dab..7a1fc26c1b5df49bc3e50f37c38f2241c5b07a45 100644 (file)
@@ -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')