X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6f6910101e495cb7dbda2a295645f6174fce6a54..5071710db7832d13341230c9942bc7030a0ec6dc:/nominatim/config.py diff --git a/nominatim/config.py b/nominatim/config.py index d1df17b7..1db56493 100644 --- a/nominatim/config.py +++ b/nominatim/config.py @@ -30,7 +30,7 @@ class Configuration: self.project_dir = project_dir self.config_dir = config_dir self._config = dotenv_values(str((config_dir / 'env.defaults').resolve())) - if project_dir is not None: + if project_dir is not None and (project_dir / '.env').is_file(): self._config.update(dotenv_values(str((project_dir / '.env').resolve()))) # Add defaults for variables that are left empty to set the default.