From 4bd425608d0313b57d82210f0ee77952d73d0be7 Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Tue, 7 Jun 2011 17:44:53 +0200 Subject: [PATCH] get config filename from env variable RADICALE_CONFIG --- radicale/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/config.py b/radicale/config.py index c86ccb3..94134b1 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -74,6 +74,8 @@ for section, values in INITIAL_CONFIG.items(): _CONFIG_PARSER.read("/etc/radicale/config") _CONFIG_PARSER.read(os.path.expanduser("~/.config/radicale/config")) +if os.environ.get('RADICALE_CONFIG', None): + _CONFIG_PARSER.read(os.environ['RADICALE_CONFIG']) # Wrap config module into ConfigParser instance sys.modules[__name__] = _CONFIG_PARSER