]> git.openstreetmap.org Git - nominatim.git/blob - cmake/tool-installed.tmpl
6128dd2f73e868f7e8545dd0e227e8095f14d3df
[nominatim.git] / cmake / tool-installed.tmpl
1 #!/usr/bin/env python3
2 import sys
3 import os
4
5 sys.path.insert(0, '@NOMINATIM_LIBDIR@/lib-python')
6 #Add config directory to the python path for module importation
7 sys.path.insert(1, '@NOMINATIM_CONFIGDIR@/..')
8
9 os.environ['NOMINATIM_NOMINATIM_TOOL'] = os.path.abspath(__file__)
10
11 from nominatim import cli
12
13 exit(cli.nominatim(module_dir='@NOMINATIM_LIBDIR@/module',
14                    osm2pgsql_path='@NOMINATIM_LIBDIR@/osm2pgsql',
15                    phplib_dir='@NOMINATIM_LIBDIR@/lib-php',
16                    sqllib_dir='@NOMINATIM_LIBDIR@/lib-sql',
17                    data_dir='@NOMINATIM_DATADIR@',
18                    config_dir='@NOMINATIM_CONFIGDIR@',
19                    phpcgi_path='@PHPCGI_BIN@'))