mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
modul loading problems
This commit is contained in:
parent
82fc315ee5
commit
5974487f37
|
|
@ -52,16 +52,24 @@ except:
|
|||
data = {"ric":"1234567", "function":"1", "msg":"Hello World!"}
|
||||
|
||||
#read Plugins
|
||||
pluginList = []
|
||||
pluginlist = []
|
||||
for i in pluginloader.getPlugins():
|
||||
plugin = pluginloader.loadPlugin(i)
|
||||
pluginList.append(plugin)
|
||||
print(plugin)
|
||||
pluginlist.append(plugin)
|
||||
|
||||
print()
|
||||
|
||||
for i in pluginlist:
|
||||
print(i)
|
||||
|
||||
exit()
|
||||
while True:
|
||||
try:
|
||||
time.sleep(1)
|
||||
logging.info("Alarm!")
|
||||
for plugin in pluginList:
|
||||
logging.info(plugin)
|
||||
plugin.run("POC","80000000",data)
|
||||
except:
|
||||
logging.exception("Cannot Throw Modules")
|
||||
|
|
|
|||
Loading…
Reference in a new issue