]> git.openstreetmap.org Git - nominatim.git/commitdiff
make nominatim callable with themepark style
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 9 Dec 2024 13:05:15 +0000 (14:05 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 16 Dec 2024 09:26:55 +0000 (10:26 +0100)
src/nominatim_db/tools/exec_utils.py

index fc3a7465f9555bbb9013f77bc171ef40efc5c859..7629e2a2b0a15442214230b8b77ebabc7b259c97 100644 (file)
@@ -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'):