]> git.openstreetmap.org Git - nominatim.git/blob - cmake/tool-installed.tmpl
Merge pull request #2695 from mtmail/git-commit-hash-to-version
[nominatim.git] / cmake / tool-installed.tmpl
1 #!/usr/bin/env python3
2 import sys
3 import os
4
5 sys.path.insert(1, '@NOMINATIM_LIBDIR@/lib-python')
6
7 os.environ['NOMINATIM_NOMINATIM_TOOL'] = os.path.abspath(__file__)
8
9 from nominatim import cli
10 from nominatim import version
11
12 version.GIT_COMMIT_HASH = '@GIT_HASH@'
13
14 exit(cli.nominatim(module_dir='@NOMINATIM_LIBDIR@/module',
15                    osm2pgsql_path='@NOMINATIM_LIBDIR@/osm2pgsql',
16                    phplib_dir='@NOMINATIM_LIBDIR@/lib-php',
17                    sqllib_dir='@NOMINATIM_LIBDIR@/lib-sql',
18                    data_dir='@NOMINATIM_DATADIR@',
19                    config_dir='@NOMINATIM_CONFIGDIR@',
20                    phpcgi_path='@PHPCGI_BIN@'))