X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f08078ccca8077b09f4b1cbb8991a4ecf7257cc4..81a6b746b83cd3e1d516c321e7098a8dee1cac09:/nominatim/config.py 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()))