X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ae8694a6a6862d7cb66cd91102d2802c9899e7cf..9058dabf1a7dc2623747a8e0eb5452e89c02c5ba:/src/nominatim_db/config.py diff --git a/src/nominatim_db/config.py b/src/nominatim_db/config.py index ad54ab3d..ae59cfd3 100644 --- a/src/nominatim_db/config.py +++ b/src/nominatim_db/config.py @@ -75,6 +75,7 @@ class Configuration: class _LibDirs: osm2pgsql: Path sql = paths.SQLLIB_DIR + lua = paths.LUALIB_DIR data = paths.DATA_DIR self.lib_dir = _LibDirs() @@ -207,7 +208,7 @@ class Configuration: style = getattr(self, 'IMPORT_STYLE') if style in ('admin', 'street', 'address', 'full', 'extratags'): - return self.config_dir / f'import-{style}.lua' + return self.lib_dir.lua / f'import-{style}.lua' return self.find_config_file('', 'IMPORT_STYLE')