MCPcopy Create free account
hub / github.com/catboost/catboost / revert_tmp_dir

Function revert_tmp_dir

library/python/tmp/__init__.py:53–62  ·  view source on GitHub ↗
(env=None)

Source from the content-addressed store, hash-verified

51
52
53def revert_tmp_dir(env=None):
54 if not env:
55 env = os.environ
56
57 if _startup_tmp_dir_set:
58 if _startup_tmp_dir is not None:
59 env['TMPDIR'] = _startup_tmp_dir
60 else:
61 env.pop('TMPDIR', None)
62 logger.debug('Reset back TMPDIR=%s', env.get('TMPDIR'))
63
64
65def temp_path(path):

Callers 1

remove_tmp_dirsFunction · 0.85

Calls 3

popMethod · 0.45
debugMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected