X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86273f5e2a81e626fd3358f06d769087f85b3451..9faaf3fc880821d0d04f4a57d8ae674c6b406c24:/nominatim/tools/exec_utils.py diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index e6b9d8d4..ffe7f556 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -6,8 +6,8 @@ import subprocess import urllib.request as urlrequest from urllib.parse import urlencode -from ..version import NOMINATIM_VERSION -from ..db.connection import get_pg_env +from nominatim.version import NOMINATIM_VERSION +from nominatim.db.connection import get_pg_env LOG = logging.getLogger() @@ -99,7 +99,7 @@ def run_osm2pgsql(options): """ Run osm2pgsql with the given options. """ env = get_pg_env(options['dsn']) - cmd = [options['osm2pgsql'], + cmd = [str(options['osm2pgsql']), '--hstore', '--latlon', '--slim', '--with-forward-dependencies', 'false', '--log-progress', 'true',