consolidate cli interface to single tool

This commit is contained in:
Sarah Hoffmann
2021-01-13 10:11:58 +01:00
parent 57f5e6d898
commit d6bcb7c8b7
3 changed files with 68 additions and 153 deletions

View File

@@ -3,9 +3,9 @@ import sys
sys.path.insert(1, '@CMAKE_SOURCE_DIR@')
from nominatim import tools
from nominatim import cli
tools.@tool_name@(module_dir='@CMAKE_BINARY_DIR@/module',
osm2pgsql_path='@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql',
phplib_dir='@CMAKE_SOURCE_DIR@/lib',
data_dir='@CMAKE_SOURCE_DIR@')
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@')