subprocess needs string argument

Compatibility change for Python 3.5.
This commit is contained in:
Sarah Hoffmann
2021-04-23 21:49:41 +02:00
parent 0f14851c98
commit 243394b1c2

View 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',