aboutsummaryrefslogtreecommitdiff
path: root/voctocore/lib/config.py
blob: 88e713cc64015abfe55bbde46fd80416aa440909 (plain)
  1. import os.path
  2. from configparser import SafeConfigParser
  3. __all__ = ['Config']
  4. def getlist(self, section, option):
  5. return [x.strip() for x in self.get(section, option).split(',')]
  6. SafeConfigParser.getlist = getlist
  7. Config = SafeConfigParser()
  8. Config.read([
  9. 'default-config.ini',
  10. '/etc/voctomix.ini',
  11. os.path.expanduser('~/.voctomix.ini')
  12. ])