diff options
author | Alexandre Flament <alex@al-f.net> | 2024-01-06 17:56:52 +0000 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-01-09 16:31:19 +0100 |
commit | 60bc5baea31c24a72cfb4f45322e326cc62caf23 (patch) | |
tree | 94bad142d230656767fde1223ebaf81fa797b6fd /manage | |
parent | 3dea7e609bac72d4a129979ba15315b966ff020f (diff) | |
download | searxng-60bc5baea31c24a72cfb4f45322e326cc62caf23.tar.gz searxng-60bc5baea31c24a72cfb4f45322e326cc62caf23.zip |
[mod] ./utils/get_setting.py tiny YAML parser for settings.yml
This allow to read settings on the fly even without virtualenv. The ultimate
goal of the commit is to remove utils/brand.env from the git repository.
The code includes a tiny yaml parser that **should** be good enough. The code
read searx/settings.yml directly (and ignore the environment variables).
yq [1] is a more reliable alternative but this require to download a binary from
github which is not great.
[1] https://github.com/mikefarah/yq/#install
Diffstat (limited to 'manage')
0 files changed, 0 insertions, 0 deletions