6 self.conf = zavai.read_config(nick="zavai")
8 def get(self, section, name, default=None):
9 if self.conf.has_section(section):
10 if self.conf.has_option(section, name):
11 return self.conf.get(section, name)
14 def _get_homedir(self):
15 res = self.get("global", "home")
17 res = os.path.expanduser("~/.zavai")
18 if not os.path.isdir(res):
19 zavai.info("Creating directory", res)
23 homedir = property(_get_homedir)