[conf] moved "domains" section to .halfapi/config

This commit is contained in:
Maxime Alves LIRMM@home 2020-08-07 00:02:59 +02:00
parent c4872ec0b3
commit b4302f50e4
1 changed files with 0 additions and 5 deletions

View File

@ -27,11 +27,6 @@ if IS_PROJECT:
if len(PROJECT_NAME) == 0:
raise Exception('Need a project name as argument')
config = ConfigParser(allow_no_value=True)
config.read_dict(default_config)
config.read(filenames=['.halfapi/domains'])
DOMAINS = [domain for domain, _ in config.items('domains')]
CONF_DIR = environ.get('HALFAPI_CONF_DIR', '/etc/half_api')