# HG changeset patch # User Mads Kiilerich # Date 1533687791 -7200 # Node ID 2b07e757a85f27663004db5a01708c7c45534e9a # Parent 03afcfc0d17f367b35568d6bce1cc541fd610592 hooks: simplify app config code in _hook_environment - don't use relative_to diff -r 03afcfc0d17f -r 2b07e757a85f kallithea/lib/hooks.py --- a/kallithea/lib/hooks.py Wed Aug 08 02:23:11 2018 +0200 +++ b/kallithea/lib/hooks.py Wed Aug 08 02:23:11 2018 +0200 @@ -380,9 +380,10 @@ from kallithea.model.base import init_model extras = _extract_extras() - path, ini_name = os.path.split(extras['config']) - conf = appconfig('config:%s' % ini_name, relative_to=path) - conf = load_environment(conf.global_conf, conf.local_conf) + ini_file_path = extras['config'] + #logging.config.fileConfig(ini_file_path) # Note: we are in a different process - don't use configured logging + app_conf = appconfig('config:%s' % ini_file_path) + conf = load_environment(app_conf.global_conf, app_conf.local_conf) setup_cache_regions(conf)