mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-08 17:40:07 +01:00
call the .onLoad() routine during plugin loading
This commit is contained in:
parent
6371d1cf3c
commit
7da58fe521
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue