X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e14e7c6235a40dbec451146bcb3aaec013d659c9..cf0d6307d641e17e024af2e49eb73ebc30b23909:/nominatim/clicmd/freeze.py diff --git a/nominatim/clicmd/freeze.py b/nominatim/clicmd/freeze.py index 1b311e97..41dd610e 100644 --- a/nominatim/clicmd/freeze.py +++ b/nominatim/clicmd/freeze.py @@ -2,7 +2,7 @@ Implementation of the 'freeze' subcommand. """ -from ..db.connection import connect +from nominatim.db.connection import connect # Do not repeat documentation of subcommand classes. # pylint: disable=C0111 @@ -31,6 +31,6 @@ class SetupFreeze: with connect(args.config.get_libpq_dsn()) as conn: freeze.drop_update_tables(conn) - freeze.drop_flatnode_file(args.config.FLATNODE_FILE) + freeze.drop_flatnode_file(str(args.config.get_path('FLATNODE_FILE'))) return 0