]> git.openstreetmap.org Git - nominatim.git/blobdiff - cmake/tool.tmpl
consolidate cli interface to single tool
[nominatim.git] / cmake / tool.tmpl
index 332e4330a070915ab3671557785bc566d03411ea..56ccd757705b42767d33bfd0d2bb27630a70824e 100755 (executable)
@@ -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@')