Allow multiple values of same key in the config file

This commit is contained in:
shortcutme 2019-07-01 16:20:13 +02:00
parent 612a3f4401
commit 43f833e604
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -409,7 +409,7 @@ class Config(object):
self.config_file = argv[argv.index("--config_file") + 1] self.config_file = argv[argv.index("--config_file") + 1]
# Load config file # Load config file
if os.path.isfile(self.config_file): if os.path.isfile(self.config_file):
config = configparser.ConfigParser(allow_no_value=True) config = configparser.ConfigParser(allow_no_value=True, strict=False)
config.read(self.config_file) config.read(self.config_file)
for section in config.sections(): for section in config.sections():
for key, val in config.items(section): for key, val in config.items(section):