Commit cff3454e authored by Guido van Rossum's avatar Guido van Rossum

Use $TMPDIR if it is set in the environment.

parent a61ff7b1
......@@ -5,11 +5,16 @@ import path
# Changeable parameters (by clients!)...
# XXX Should the environment variable $TMPDIR override tempdir?
tempdir = '/usr/tmp'
template = '@'
# Use environment variable $TMPDIR to override default tempdir.
if posix.environ.has_key('TMPDIR'):
# XXX Could check that it's a writable directory...
tempdir = posix.environ['TMPDIR']
# Counter for generating unique names
......
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