]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/config.py
have ADDRESS_LEVEL_CONFIG use load_sub_configuration
[nominatim.git] / nominatim / config.py
index 3ac8e33fc65ffe5e3c3250c71c29a11feabb5686..28f2fcc3a2a7b89412346c0cbea13be58bc7908d 100644 (file)
@@ -56,12 +56,6 @@ class Configuration:
         if project_dir is not None and (project_dir / '.env').is_file():
             self._config.update(dotenv_values(str((project_dir / '.env').resolve())))
 
         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.
-        # They may still be overwritten by environment variables.
-        if not self._config['NOMINATIM_ADDRESS_LEVEL_CONFIG']:
-            self._config['NOMINATIM_ADDRESS_LEVEL_CONFIG'] = \
-                str(config_dir / 'address-levels.json')
-
         class _LibDirs:
             pass
 
         class _LibDirs:
             pass