blob: 76f67b0a8408714b6ef5c9ed1b10d71d78fd6bab (
plain)
- import os.path
- from configparser import SafeConfigParser
- 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')
- ])
|