Commit d4139319 authored by sumpfralle's avatar sumpfralle

clarified log message for missing dependencies


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1136 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 160592dc
...@@ -158,8 +158,15 @@ class PluginManager(object): ...@@ -158,8 +158,15 @@ class PluginManager(object):
plugins = postponed_plugins plugins = postponed_plugins
for plugin, filename, name in plugins: for plugin, filename, name in plugins:
# module failed to load due to missing dependencies # module failed to load due to missing dependencies
missing = []
for depend in plugin.DEPENDS:
try:
# check if this dependency is available
self.get_plugin(depend)
except KeyError:
missing.append(depend)
_log.info("Skipping plugin '%s' due to missing dependencies: %s" % \ _log.info("Skipping plugin '%s' due to missing dependencies: %s" % \
(name, ", ".join(plugin.DEPENDS))) (name, ", ".join(missing)))
def _load_plugin(self, obj, filename, plugin_name): def _load_plugin(self, obj, filename, plugin_name):
if plugin_name in self.modules: if plugin_name in self.modules:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment