X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7f11de0db9ecbb2a8f7551815285d7553747a96e..d856788bf5cf7b4b3e2b4de10f37cf3002ae6826:/src/nominatim_db/config.py diff --git a/src/nominatim_db/config.py b/src/nominatim_db/config.py index 2cab0237..b220b5c7 100644 --- a/src/nominatim_db/config.py +++ b/src/nominatim_db/config.py @@ -61,7 +61,7 @@ class Configuration: def __init__(self, project_dir: Optional[Union[Path, str]], environ: Optional[Mapping[str, str]] = None) -> None: - self.environ = environ or os.environ + self.environ = os.environ if environ is None else environ self.config_dir = paths.CONFIG_DIR self._config = dotenv_values(str(self.config_dir / 'env.defaults')) if project_dir is not None: @@ -72,9 +72,7 @@ class Configuration: self.project_dir = None class _LibDirs: - module: Path osm2pgsql: Path - php = paths.PHPLIB_DIR sql = paths.SQLLIB_DIR data = paths.DATA_DIR