]> git.openstreetmap.org Git - nominatim.git/blob - cmake/tool.tmpl
43646792d19d8824753a331f39b3111fa1d6f357
[nominatim.git] / cmake / tool.tmpl
1 #!/usr/bin/env python3
2 import sys
3 import os
4
5 sys.path.insert(1, '@CMAKE_SOURCE_DIR@')
6
7 os.environ['NOMINATIM_NOMINATIM_TOOL'] = __file__
8
9 from nominatim import cli
10
11 exit(cli.nominatim(module_dir='@CMAKE_BINARY_DIR@/module',
12                    osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql',
13                    phplib_dir='@CMAKE_SOURCE_DIR@/lib',
14                    data_dir='@CMAKE_SOURCE_DIR@'))