34 from importlib
import reload
41 Overrides the builtin import and automatically reloads all modules. 43 Modules are imported from one of the reload paths after calling enable. 57 __builtin__.__import__ = self.
_import 65 if module.__name__
not in self.
_import_stack and module.__name__
in sys.modules:
75 def _reimport(self, name, globals_=None, locals_=None, fromlist=None, level=-1):
77 name, globals_, locals_, fromlist
if not None else [], level
if not None else -1)
81 (hasattr(module,
'__file__')
and 82 len([p
for p
in self.
_reload_paths if module.__file__.startswith(p)]) > 0):
def _reimport(self, name, globals_=None, locals_=None, fromlist=None, level=-1)
def _reload(self, module)
def add_reload_path(self, path)