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