]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/clicmd/freeze.py
Merge pull request #2476 from lonvia/harmonize-configuration-file-settings
[nominatim.git] / nominatim / clicmd / freeze.py
index 1b311e97f2f7ee1081c4d1706501b9591c08704c..41dd610ed67f8f2246cda918f94f4558895730e1 100644 (file)
@@ -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