MCPcopy Index your code
hub / github.com/bugy/script-server / cleanup

Function cleanup

src/tests/test_utils.py:76–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75
76def cleanup():
77 if os.path.exists(temp_folder):
78 _rmtree(temp_folder)
79
80 os_utils.reset_os()
81
82 for key, value in _original_env.items():
83 if value is None:
84 del os.environ[key]
85 else:
86 os.environ[key] = value
87
88 _original_env.clear()
89
90
91def _rmtree(folder):

Callers

nothing calls this directly

Calls 2

_rmtreeFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected