mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
have ADDRESS_LEVEL_CONFIG use load_sub_configuration
This means that relative paths now are looked up in the project directory.
This commit is contained in:
@@ -75,10 +75,9 @@ class UpdateRefresh:
|
||||
self._get_tokenizer(args.config).update_statistics()
|
||||
|
||||
if args.address_levels:
|
||||
cfg = Path(args.config.ADDRESS_LEVEL_CONFIG)
|
||||
LOG.warning('Updating address levels from %s', cfg)
|
||||
LOG.warning('Updating address levels')
|
||||
with connect(args.config.get_libpq_dsn()) as conn:
|
||||
refresh.load_address_levels_from_file(conn, cfg)
|
||||
refresh.load_address_levels_from_config(conn, args.config)
|
||||
|
||||
if args.functions:
|
||||
LOG.warning('Create functions')
|
||||
|
||||
Reference in New Issue
Block a user