Mercurial > libervia-desktop-kivy
comparison cagou/core/cagou_main.py @ 402:ab1e97b7e8a5
core: log parse config files
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Feb 2020 20:02:58 +0100 |
parents | 672880661797 |
children | 72a6b06728ab |
comparison
equal
deleted
inserted
replaced
401:788e05d1e2bf | 402:ab1e97b7e8a5 |
---|---|
38 from sat.tools import config | 38 from sat.tools import config |
39 from sat.tools.common import dynamic_import | 39 from sat.tools.common import dynamic_import |
40 import kivy | 40 import kivy |
41 kivy.require('1.11.0') | 41 kivy.require('1.11.0') |
42 import kivy.support | 42 import kivy.support |
43 main_config = config.parseMainConf() | 43 main_config = config.parseMainConf(log_filenames=True) |
44 bridge_name = config.getConfig(main_config, '', 'bridge', 'dbus') | 44 bridge_name = config.getConfig(main_config, '', 'bridge', 'dbus') |
45 # FIXME: event loop is choosen according to bridge_name, a better way should be used | 45 # FIXME: event loop is choosen according to bridge_name, a better way should be used |
46 if 'dbus' in bridge_name: | 46 if 'dbus' in bridge_name: |
47 kivy.support.install_gobject_iteration() | 47 kivy.support.install_gobject_iteration() |
48 elif bridge_name in ('pb', 'embedded'): | 48 elif bridge_name in ('pb', 'embedded'): |