Commit 4033ad75 authored by Guido van Rossum's avatar Guido van Rossum

Restore 1.3 behavior of gettempdir(): if tempdir is already set, believe it.

parent 0523d63a
......@@ -18,6 +18,8 @@ template = None
def gettempdir():
global tempdir
if tempdir is not None:
return tempdir
attempdirs = ['/usr/tmp', '/tmp', os.getcwd(), os.curdir]
if os.environ.has_key('TMPDIR'):
attempdirs.insert(0, os.environ['TMPDIR'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment