get_tempdir

lsst.resources.utils.get_tempdir() str

Get POSIX path to temporary directory.

Returns:
tmpdirstr

Path to the default temporary directory location.

Notes

Uses the value of environment variables LSST_RESOURCES_TMPDIR or TMPDIR, if defined. Otherwise use the system temporary directory, with a last-resort fallback to the current working directory if nothing else is available.