_ksconf = property(__get_ksconf, __set_ksconf)
def _parse_siteconf(self, siteconf):
+
+ if os.getenv("MIC_PLUGIN_DIR"):
+ self.common["plugin_dir"] = os.environ["MIC_PLUGIN_DIR"]
+
+ if siteconf and not os.path.exists(siteconf):
+ msger.warning("cannot find config file: %s" % siteconf)
+ siteconf = None
+
if not siteconf:
- return
+ self.common["distro_name"] = "Tizen"
+ # append common section items to other sections
+ for section in self.DEFAULTS.keys():
+ if section != "common":
+ getattr(self, section).update(self.common)
- if not os.path.exists(siteconf):
- msger.warning("cannot read config file: %s" % siteconf)
return
parser = ConfigParser.SafeConfigParser()
if section in self.DEFAULTS:
getattr(self, section).update(dict(parser.items(section)))
- if os.getenv("MIC_PLUGIN_DIR"):
- self.common["plugin_dir"] = os.environ["MIC_PLUGIN_DIR"]
-
# append common section items to other sections
for section in self.DEFAULTS.keys():
if section != "common":