]> git.openstreetmap.org Git - nominatim.git/blob - cmake/script.tmpl
Merge pull request #2147 from lonvia/tests-for-python-code
[nominatim.git] / cmake / script.tmpl
1 #!@PHP_BIN@ -Cq
2 <?php
3 require('@CMAKE_SOURCE_DIR@/lib/dotenv_loader.php');
4
5 @define('CONST_Default_ModulePath', '@CMAKE_BINARY_DIR@/module');
6 @define('CONST_Default_Osm2pgsql', '@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql');
7 @define('CONST_BinDir', '@CMAKE_SOURCE_DIR@/utils');
8 @define('CONST_DataDir', '@CMAKE_SOURCE_DIR@');
9
10 loadDotEnv();
11 $_SERVER['NOMINATIM_NOMINATIM_TOOL'] = '@CMAKE_BINARY_DIR@/nominatim';
12
13 require_once('@CMAKE_SOURCE_DIR@/lib/admin/@script_source@');