Skip to content

Commit

Permalink
Fallback to RADICALE_CONFIG from OS environ
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Aug 16, 2018
1 parent 22ddfc6 commit 3455ab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radicale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3455ab4

Please sign in to comment.