From 44fface92a52e5972cafaf93d7a46e23626de1a0 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 18 May 2024 14:04:06 +0200 Subject: [PATCH] add script for in-source execution --- nominatim-cli.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 nominatim-cli.py diff --git a/nominatim-cli.py b/nominatim-cli.py new file mode 100755 index 00000000..1f3c1210 --- /dev/null +++ b/nominatim-cli.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of Nominatim. (https://nominatim.org) +# +# Copyright (C) 2024 by the Nominatim developer community. +# For a full list of authors see the git log. +""" +Helper script for development to run nominatim from the source directory. +""" +from pathlib import Path +import sys + +sys.path.insert(1, str((Path(__file__) / '..' / 'src').resolve())) + +from nominatim_db import cli + +exit(cli.nominatim(module_dir=None, osm2pgsql_path=None)) -- 2.39.5