From: Sarah Hoffmann Date: Fri, 23 Apr 2021 19:49:41 +0000 (+0200) Subject: subprocess needs string argument X-Git-Tag: v3.7.1~9 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/243394b1c2971f86d5a92f9fbb02c487cf2b54de?hp=0f14851c985df187d68229d5f072761496835ebe subprocess needs string argument Compatibility change for Python 3.5. --- diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index e6b9d8d4..88940461 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -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',