]> git.openstreetmap.org Git - nominatim.git/commitdiff
subprocess needs string argument
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 23 Apr 2021 19:49:41 +0000 (21:49 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 23 Apr 2021 20:50:08 +0000 (22:50 +0200)
Compatibility change for Python 3.5.

nominatim/tools/exec_utils.py

index 96679d279472fd49d568b7ce41fdfeeebde1a206..ffe7f5563cb407435e9078bba328384c31bedcb5 100644 (file)
@@ -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',