]> git.openstreetmap.org Git - nominatim.git/commit
introduce generic YAML config loader
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 3 Sep 2021 16:16:12 +0000 (18:16 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 3 Sep 2021 16:20:07 +0000 (18:20 +0200)
commit1c42780bb5b1519ba0ebe2126264f0851bbd1c04
tree667187964dbb5d95453d14175c3863b9a604f6ab
parent18554dfed767d8ef669e15014a5b0382ad8bab43
introduce generic YAML config loader

Adds a function to the Configuration class to load a YAML
file. This means that searching for the file is generalised
and works the same now for all configuration files. Changes
the search logic, so that it is always possible to have a
custom version of the configuration file in the project
directory.

Move ICU tokenizer to use new load function.
nominatim/config.py
nominatim/tokenizer/icu_rule_loader.py
nominatim/tokenizer/icu_tokenizer.py
test/python/test_tokenizer_icu.py
test/python/test_tokenizer_icu_name_processor.py
test/python/test_tokenizer_icu_rule_loader.py