call the .onLoad() routine during plugin loading

This commit is contained in:
Schrolli 2015-06-29 12:55:13 +02:00
parent 6371d1cf3c
commit 7da58fe521

View file

@ -30,7 +30,17 @@ def loadPlugins():
# call for each Plugin the loadPlugin() Methode
plugin = loadPlugin(i)
# Add it to globals.pluginList
globals.pluginList[i["name"]] = plugin
globals.pluginList[i["name"]] = plugin
#call the .onLoad() routine for all active plugins
for pluginName, plugin in globals.pluginList.items():
logging.debug("call %s.onLoad()", pluginName)
try:
plugin.onLoad(typ,freq,data)
except:
# call next plugin, if one has thrown an exception
pass
except:
logging.exception("cannot load Plugins")