MCPcopy Index your code
hub / github.com/saltstack/salt / rm_lib

Method rm_lib

tests/unit/test_loader.py:927–932  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

925 remove_bytecode(self.lib_path)
926
927 def rm_lib(self):
928 for modname in list(sys.modules):
929 if modname.startswith(self.module_name):
930 del sys.modules[modname]
931 os.unlink(self.lib_path)
932 remove_bytecode(self.lib_path)
933
934 @property
935 def module_dir(self):

Callers 1

Calls 3

remove_bytecodeFunction · 0.85
unlinkMethod · 0.80
listFunction · 0.50

Tested by

no test coverage detected