From 971df231b0563826402465183332c97a8a1602c4 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 19 Feb 2021 19:29:57 +0100 Subject: [PATCH] avoid os.environ as default valie --- nominatim/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nominatim/config.py b/nominatim/config.py index 564884f6..a22f90ab 100644 --- a/nominatim/config.py +++ b/nominatim/config.py @@ -25,8 +25,8 @@ class Configuration: avoid conflicts with other environment variables. """ - def __init__(self, project_dir, config_dir, environ=os.environ): - self.environ = environ + def __init__(self, project_dir, config_dir, environ=None): + self.environ = environ or os.environ self.project_dir = project_dir self.config_dir = config_dir self._config = dotenv_values(str((config_dir / 'env.defaults').resolve())) -- 2.39.5