blob: 88e713cc64015abfe55bbde46fd80416aa440909 (
plain)
- import os.path
- from configparser import SafeConfigParser
- __all__ = ['Config']
- def getlist(self, section, option):
- return [x.strip() for x in self.get(section, option).split(',')]
- SafeConfigParser.getlist = getlist
- Config = SafeConfigParser()
- Config.read([
- 'default-config.ini',
- '/etc/voctomix.ini',
- os.path.expanduser('~/.voctomix.ini')
- ])
|