X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ba13cfd9ffcbb2598c227850736abb9da720a636..e8cfba1b10206ac4b49172caf8667f12f28b2d40:/nominatim/config.py diff --git a/nominatim/config.py b/nominatim/config.py index 6395bf2a..911c7ddf 100644 --- a/nominatim/config.py +++ b/nominatim/config.py @@ -21,7 +21,8 @@ class Configuration: def __init__(self, project_dir, config_dir): self._config = dotenv_values(str((config_dir / 'env.defaults').resolve())) - self._config.update(dotenv_values(str((project_dir / '.env').resolve()))) + if project_dir is not None: + self._config.update(dotenv_values(str((project_dir / '.env').resolve()))) def __getattr__(self, name): name = 'NOMINATIM_' + name