Skip to content

Commit

Permalink
make nominatim callable with themepark style
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Dec 9, 2024
1 parent 5b21dcd commit b36431d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nominatim_db/tools/exec_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit b36431d

Please sign in to comment.