apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject unix/tempdir.c
Date Tue, 22 Sep 2009 16:09:41 GMT
While looking at a different codebase, I was made (re)aware that the
ordering for APR to find the temp directory uses the following ordering
in env-vars:


with the rationale that "this is how Python 2.2 does it"

But really, the canonical var to use is $TMPDIR, and looking
over Python 2.6 (at least) does revise the ordering to be what
"should" be expected....

     for envname in 'TMPDIR', 'TEMP', 'TMP':
         dirname = _os.getenv(envname)
         if dirname: dirlist.append(dirname)

Anyone have heartburn if I "fix" tempdir.c ? 

View raw message