SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] utils/fetch_languages.py: write files at the right location
Alexandre Flament6047087aacdf
diff --git a/utils/fetch_languages.py b/utils/fetch_languages.pyindex 1f8dc7786..453693136 100644--- a/utils/fetch_languages.py+++ b/utils/fetch_languages.py@@ -6,18 +6,19 @@# are written in current directory to avoid overwriting in case something goes wrong.import json+from pathlib import Pathfrom pprint import pformatfrom sys import pathfrom babel import Locale, UnknownLocaleErrorfrom babel.languages import get_globalpath.append('../searx') # noqa-from searx import settings+from searx import settings, searx_dirfrom searx.engines import initialize_engines, engines# Output files.-engines_languages_file = 'engines_languages.json'-languages_file = 'languages.py'+engines_languages_file = Path(searx_dir) / 'data' / 'engines_languages.json'+languages_file = Path(searx_dir) / 'languages.py'# Fetchs supported languages for each engine and writes json file with those.