From b36431dc2b4c4d4ade58a92f87664bea37af4824 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 9 Dec 2024 14:05:15 +0100 Subject: [PATCH] make nominatim callable with themepark style --- src/nominatim_db/tools/exec_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nominatim_db/tools/exec_utils.py b/src/nominatim_db/tools/exec_utils.py index fc3a7465f..7629e2a2b 100644 --- a/src/nominatim_db/tools/exec_utils.py +++ b/src/nominatim_db/tools/exec_utils.py @@ -39,7 +39,10 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: if str(options['osm2pgsql_style']).endswith('.lua'): env['LUA_PATH'] = ';'.join((str(options['osm2pgsql_style_path'] / '?.lua'), - os.environ.get('LUAPATH', ';'))) + os.environ.get('LUA_PATH', ';'))) + env['THEMEPARK_PATH'] = str(options['osm2pgsql_style_path'] / 'themes') + if 'THEMEPARK_PATH' in os.environ: + env['THEMEPARK_PATH'] += ':' + os.environ['THEMEPARK_PATH'] cmd.extend(('--output', 'flex')) for flavour in ('data', 'index'):