|
@@ -133,14 +133,14 @@ class _ResourceManager(object): |
|
|
if name.startswith("_") or name.startswith("."): |
|
|
if name.startswith("_") or name.startswith("."): |
|
|
continue |
|
|
continue |
|
|
modname = sub("\.pyc?$", "", name) # Remove extension |
|
|
modname = sub("\.pyc?$", "", name) # Remove extension |
|
|
|
|
|
if modname in processed: |
|
|
|
|
|
continue |
|
|
|
|
|
processed.append(modname) |
|
|
if self._is_disabled(modname): |
|
|
if self._is_disabled(modname): |
|
|
log = "Skipping disabled module {0}".format(modname) |
|
|
log = "Skipping disabled module {0}".format(modname) |
|
|
self.logger.debug(log) |
|
|
self.logger.debug(log) |
|
|
processed.append(modname) |
|
|
|
|
|
continue |
|
|
continue |
|
|
if modname not in processed: |
|
|
|
|
|
self._load_module(modname, dir) |
|
|
|
|
|
processed.append(modname) |
|
|
|
|
|
|
|
|
self._load_module(modname, dir) |
|
|
|
|
|
|
|
|
def _unload_resources(self): |
|
|
def _unload_resources(self): |
|
|
"""Unload all resources, calling their unload hooks in the process.""" |
|
|
"""Unload all resources, calling their unload hooks in the process.""" |
|
|