cf.TEMPDIR

cf.TEMPDIR(*new_tempdir)[source]

Return or set the directory for internally generated temporary files.

When setting the directory, it is created if the specified path does not exist.

Parameters :
new_tempdir : str, optional

The new directory for temporary files.

Returns :
out : str or None

If new_tempdir was not set then return the existing temporary files’ directory, otherwise return None.

Examples

>>> cf.TEMPDIR()
'/tmp'
>>> cf.TEMPDIR('/home/me/tmp')
>>> cf.TEMPDIR()
'/home/me/tmp'
>>> cf.TEMPDIR('../tmp')

Previous topic

cf.RTOL

Next topic

cf.abspath

This Page