Skip to content
Snippets Groups Projects
Commit 0d77c87a authored by jkerdreu's avatar jkerdreu
Browse files

New run / setup / logger


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2084 b32b6428-25c9-4566-ad07-03861ab6144f
parent a3a3d1ec
Branches
No related tags found
No related merge requests found
from .app import setup
\ No newline at end of file
from xaal.lib import helpers
from . import app
app.main()
helpers.run_package(app.PACKAGE_NAME,app.setup)
\ No newline at end of file
......@@ -3,9 +3,10 @@ from xaal.lib import Engine,Device,tools
import platform
import copy
import atexit
import logging
PACKAGE_NAME = "xaal.metadb"
logger = tools.get_logger(PACKAGE_NAME,'DEBUG')
logger = logging.getLogger(PACKAGE_NAME)
class MetaDB(object):
......@@ -149,16 +150,7 @@ class MetaDB(object):
self.cfg.write()
self.dirty = False
def run():
eng = Engine()
mdb = MetaDB(eng)
eng.run()
def setup(eng):
MetaDB(eng)
return True
def main():
try:
run()
except KeyboardInterrupt:
print("Bye Bye..")
if __name__=='__main__':
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment