How can I get the temporary directory path in Ubuntu?
I looked at how Python does this, and there doesn't seem to be any specific UNIX interface to do so.
They just try, in sequence:
TMPDIR, TEMP, and TMP/tmp/var/tmp/usr/tmpGiven that Python was written by people a lot smarter than I am, I'd be willing to bet this is probably the best you can do.