Skip to content
Snippets Groups Projects
Commit 2e6e1f42 authored by jkerdreu's avatar jkerdreu
Browse files

- Fix missing alives with delayed load_pkgs

=> setup() can't be an async func now (sound acceptable anyways)

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2925 b32b6428-25c9-4566-ad07-03861ab6144f
parent af30f968
No related branches found
No related tags found
No related merge requests found
......@@ -839,10 +839,13 @@ def pkgrun():
continue
if hasattr(mod,'setup') == False:
logger.critical("Unable to setup %s" % xaal_mod)
logger.critical("Unable to find setup %s" % xaal_mod)
continue
logger.info(f"{xaal_mod} loaded")
mod.setup(eng)
result = mod.setup(eng)
if result != True:
logger.critical("something goes wrong with package: %s" % pkg_name)
eng.on_start(load_pkgs)
load_pkgs()
helper.run_forever()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment