Commits

Rafael Martins committed e2024d0

no need to cache plugins. we need to be able to reload them.

Comments (0)

Files changed (1)

blohg/hgapi/plugins.py

     def __init__(self, wrapper_module):
         self.wrapper_module = wrapper_module
         self.prefix = wrapper_module + '.'
-        self.loaded = []
 
     def __eq__(self, other):
         return self.__class__.__module__ == other.__class__.__module__ and \
             return self
 
     def load_module(self, fullname):
-        if fullname in sys.modules and fullname in self.loaded:
-            return sys.modules[fullname]
         name = fullname[len(self.prefix):]
         modules = self.lookup_modules()
         if name in modules:
             if filename.endswith(posixpath.sep + '__init__.py'):
                 mod.__path__ = [filename.rsplit(posixpath.sep, 1)[0]]
             exec modules[name].data() in mod.__dict__
-            self.loaded.append(fullname)
             return mod
 
     def lookup_modules(self):