set_tmp_dir#

ivy.set_tmp_dir(tmp_dr)[source]#

Set the directory for saving temporary files.

Parameters:

tmp_dr (str) – The new directory for saving temporary files

Return type:

None

Examples

>>> x = ivy.tmp_dir
>>> print(x)
/tmp
>>> ivy.set_tmp_dir("/my_tmp")
>>> y = ivy.tmp_dir
>>> print(y)
/my_tmp
>>> # Unset the tmp_dr
>>> ivy.unset_tmp_dir()