comparison cagou/core/cagou_main.py @ 316:86566968837a

android (p4a): updated P4A option to use Python 3: - hostpython3 is now used so we are using Python 3 - added pyasn1 and pyasn1-modules which were lacking - recent p4a now use setup.py, this is currently disabled to keep the building working
author Goffi <goffi@goffi.org>
date Wed, 16 Oct 2019 08:48:32 +0200
parents 772c170b47a9
children 4b0fa73caad4
comparison
equal deleted inserted replaced
315:4c1df075378c 316:86566968837a
411 service.start(mActivity, argument) 411 service.start(mActivity, argument)
412 self.service = service 412 self.service = service
413 413
414 bridge_module = dynamic_import.bridge(bridge_name, 'sat_frontends.bridge') 414 bridge_module = dynamic_import.bridge(bridge_name, 'sat_frontends.bridge')
415 if bridge_module is None: 415 if bridge_module is None:
416 log.error("Can't import {} bridge".format(bridge_name)) 416 log.error(f"Can't import {bridge_name} bridge")
417 sys.exit(3) 417 sys.exit(3)
418 else: 418 else:
419 log.debug("Loading {} bridge".format(bridge_name)) 419 log.debug(f"Loading {bridge_name} bridge")
420 super(Cagou, self).__init__(bridge_factory=bridge_module.Bridge, 420 super(Cagou, self).__init__(bridge_factory=bridge_module.Bridge,
421 xmlui=xmlui, 421 xmlui=xmlui,
422 check_options=quick_utils.check_options, 422 check_options=quick_utils.check_options,
423 connect_bridge=False) 423 connect_bridge=False)
424 self._import_kv() 424 self._import_kv()
570 else: 570 else:
571 raise exceptions.InternalError("base.kv is missing") 571 raise exceptions.InternalError("base.kv is missing")
572 572
573 for kv_file in kv_files: 573 for kv_file in kv_files:
574 Builder.load_file(kv_file) 574 Builder.load_file(kv_file)
575 log.debug("kv file {} loaded".format(kv_file)) 575 log.debug(f"kv file {kv_file} loaded")
576 576
577 def _import_plugins(self): 577 def _import_plugins(self):
578 """import all plugins""" 578 """import all plugins"""
579 self.default_wid = None 579 self.default_wid = None
580 plugins_path = os.path.dirname(cagou.plugins.__file__) 580 plugins_path = os.path.dirname(cagou.plugins.__file__)