commit | e504c0c2dc6fabbab4f44dab21674d94f2b6df34 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Aug 29 14:55:03 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Aug 29 14:55:03 2000 +0000 |
tree | 62f840b02feb1532eb5dd00452cdede73a241e7e | |
parent | 7e1a1d0c8983628b8faba8085219111ac7482cc7 [diff] [blame] |
Patch by tg@FreeBSD.org to try /var/tmp first. This helps on 4.4BSD-based systems.
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 @@ 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')