mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 21:57:43 +03:00
Fallback to RADICALE_CONFIG from OS environ
This commit is contained in:
parent
22ddfc6663
commit
3455ab4ba9
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue