Fallback to RADICALE_CONFIG from OS environ

This commit is contained in:
Unrud 2018-08-16 07:57:32 +02:00
parent 22ddfc6663
commit 3455ab4ba9

View File

@ -1013,7 +1013,8 @@ def _init_application(config_path):
def application(environ, start_response): def application(environ, start_response):
config_path = environ.get("RADICALE_CONFIG") config_path = environ.get("RADICALE_CONFIG",
os.environ.get("RADICALE_CONFIG"))
if _application is None: if _application is None:
_init_application(config_path) _init_application(config_path)
if _application_config_path != config_path: if _application_config_path != config_path: