mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
The PHP scripts need to know the position of the nominatim tool in order to call it. This is handed in as environment variable, so it can be set by the Python script.
15 lines
407 B
Python
Executable File
15 lines
407 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
import os
|
|
|
|
sys.path.insert(1, '@CMAKE_SOURCE_DIR@')
|
|
|
|
os.environ['NOMINATIM_NOMINATIM_TOOL'] = __file__
|
|
|
|
from nominatim import cli
|
|
|
|
exit(cli.nominatim(module_dir='@CMAKE_BINARY_DIR@/module',
|
|
osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql',
|
|
phplib_dir='@CMAKE_SOURCE_DIR@/lib',
|
|
data_dir='@CMAKE_SOURCE_DIR@'))
|