2021-01-12 12:17:28 +03:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import sys
|
2021-01-17 23:02:50 +03:00
|
|
|
import os
|
2021-01-12 12:17:28 +03:00
|
|
|
|
|
|
|
sys.path.insert(1, '@CMAKE_SOURCE_DIR@')
|
|
|
|
|
2021-02-01 19:44:13 +03:00
|
|
|
os.environ['NOMINATIM_NOMINATIM_TOOL'] = os.path.abspath(__file__)
|
2021-01-17 23:02:50 +03:00
|
|
|
|
2021-01-13 12:11:58 +03:00
|
|
|
from nominatim import cli
|
2021-01-12 12:17:28 +03:00
|
|
|
|
2021-01-14 16:36:41 +03:00
|
|
|
exit(cli.nominatim(module_dir='@CMAKE_BINARY_DIR@/module',
|
|
|
|
osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql',
|
2021-02-09 13:52:07 +03:00
|
|
|
phplib_dir='@CMAKE_SOURCE_DIR@/lib-php',
|
2021-02-09 17:26:56 +03:00
|
|
|
sqllib_dir='@CMAKE_SOURCE_DIR@/lib-sql',
|
2021-02-09 22:04:08 +03:00
|
|
|
data_dir='@CMAKE_SOURCE_DIR@/data',
|
2021-02-09 20:45:45 +03:00
|
|
|
config_dir='@CMAKE_SOURCE_DIR@/settings',
|
2021-01-18 00:03:54 +03:00
|
|
|
phpcgi_path='@PHPCGI_BIN@'))
|