]> git.openstreetmap.org Git - nominatim.git/blob - cmake/tool.tmpl
forward cli tool return value as exit code
[nominatim.git] / cmake / tool.tmpl
1 #!/usr/bin/env python3
2 import sys
3
4 sys.path.insert(1, '@CMAKE_SOURCE_DIR@')
5
6 from nominatim import cli
7
8 exit(cli.nominatim(module_dir='@CMAKE_BINARY_DIR@/module',
9                    osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql',
10                    phplib_dir='@CMAKE_SOURCE_DIR@/lib',
11                    data_dir='@CMAKE_SOURCE_DIR@'))