Skip to content

Commit 44fface

Browse files
committed
add script for in-source execution
1 parent 6e89310 commit 44fface

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: nominatim-cli.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
#
4+
# This file is part of Nominatim. (https://nominatim.org)
5+
#
6+
# Copyright (C) 2024 by the Nominatim developer community.
7+
# For a full list of authors see the git log.
8+
"""
9+
Helper script for development to run nominatim from the source directory.
10+
"""
11+
from pathlib import Path
12+
import sys
13+
14+
sys.path.insert(1, str((Path(__file__) / '..' / 'src').resolve()))
15+
16+
from nominatim_db import cli
17+
18+
exit(cli.nominatim(module_dir=None, osm2pgsql_path=None))

0 commit comments

Comments
 (0)