]> granicus.if.org Git - python/commitdiff
Patch by tg@FreeBSD.org to try /var/tmp first.
authorGuido van Rossum <guido@python.org>
Tue, 29 Aug 2000 14:55:03 +0000 (14:55 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 29 Aug 2000 14:55:03 +0000 (14:55 +0000)
This helps on 4.4BSD-based systems.

Lib/tempfile.py

index eef6bffe11ed4adbf284704bdcfa8383624ac482..50778352439acdc645a59264f97dc3a6e070933e 100644 (file)
@@ -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')