Run messagebus after registering plugins
This commit is contained in:
parent
8d26cd4d5d
commit
7ef7a3aebe
|
@ -13,10 +13,12 @@ def main():
|
|||
"Main function"
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
mycroft = MessageBusClient()
|
||||
mycroft.run_in_thread()
|
||||
daemon = Daemon(config.OSD_URL, config.CAR_API_URL, mycroft)
|
||||
for plugin in plugins:
|
||||
daemon.register_plugin(plugin)
|
||||
# Start mycroft after registering plugins so that an .on events by plugins
|
||||
# get registered
|
||||
mycroft.run_in_thread()
|
||||
while True:
|
||||
daemon.check_all()
|
||||
time.sleep(config.DELAY)
|
||||
|
|
Loading…
Reference in New Issue