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@/..')
9 os.environ['NOMINATIM_NOMINATIM_TOOL'] = os.path.abspath(__file__)
11 from nominatim import cli
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@'))