From 3455ab4ba9315397ec03f5427ab331f19553c752 Mon Sep 17 00:00:00 2001 From: Unrud Date: Thu, 16 Aug 2018 07:57:32 +0200 Subject: [PATCH] Fallback to RADICALE_CONFIG from OS environ --- radicale/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index b3f6db1..5a969d6 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -1013,7 +1013,8 @@ def _init_application(config_path): 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: _init_application(config_path) if _application_config_path != config_path: