1
0

show plugin dependencies

This commit is contained in:
ThomasV
2015-05-24 10:06:53 +02:00
parent d40c12c949
commit 48ad7c36a8
3 changed files with 23 additions and 21 deletions

View File

@@ -37,7 +37,7 @@ def is_available(name, w):
else:
return False
deps = d.get('requires', [])
for dep in deps:
for dep, s in deps:
try:
__import__(dep)
except ImportError:
@@ -84,7 +84,7 @@ def init_plugins(config, is_local, gui_name):
p = loader(name)
plugins[name] = p.Plugin(config, name)
except Exception:
print_msg(_("Error: cannot initialize plugin"), p)
print_msg(_("Error: cannot initialize plugin"), name)
traceback.print_exc(file=sys.stdout)
hook_names = set()