MCPcopy Create free account
hub / github.com/numpy/numpy / _cleanup

Function _cleanup

numpy/f2py/tests/util.py:40–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def _cleanup():
41 global _module_dir
42 if _module_dir is not None:
43 try:
44 sys.path.remove(_module_dir)
45 except ValueError:
46 pass
47 try:
48 shutil.rmtree(_module_dir)
49 except OSError:
50 pass
51 _module_dir = None
52
53
54def get_module_dir():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected