24 system_config = LocalConf(SYSTEM_CONFIG)
25 platform = system_config.get(
"enclosure", {}).
get(
"platform")
27 if platform ==
"mycroft_mark_1":
28 LOG.debug(
"Creating Mark I Enclosure")
30 enclosure = EnclosureMark1()
31 elif platform ==
"mycroft_mark_2":
32 LOG.debug(
"Creating Mark II Enclosure")
34 enclosure = EnclosureMark2()
36 LOG.debug(
"Creating generic enclosure, platform='{}'".format(platform))
41 enclosure = EnclosureGeneric()
45 LOG.debug(
"Enclosure started!")
47 except Exception
as e:
52 LOG.debug(
"No enclosure available for this hardware, running headless")
55 if __name__ ==
"__main__":
def get(phrase, lang=None, context=None)