generate_tempfile_name#

generate_tempfile_name(suffix=None)[source]#

Returns the path to a temporary file with given suffix. If defined. the environment variable TMPDIR is used as base.

Parameters:
suffixstr, optional

File suffix. By default the file has no suffix.

Returns:
str

The generated filename