From f9c5727ddc74b9ee3bb95225c30f57c7aeb14806 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 7 Jan 2024 18:33:34 +0100 Subject: [mod] get rid of ./utils/brand.env and its workflow All the environments defined in ./utils/brand.env are generated on the fly, so there is no longer a need to define the brand environment in this file and all the workflows to handle this file. Signed-off-by: Markus Heiser --- utils/searxng_check.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/searxng_check.py') diff --git a/utils/searxng_check.py b/utils/searxng_check.py index dca4f1cda..3d2614fd4 100644 --- a/utils/searxng_check.py +++ b/utils/searxng_check.py @@ -7,6 +7,9 @@ import os import sys import logging import warnings +from pathlib import Path + +repo_root = Path(__file__).resolve().parent.parent LOG_FORMAT_DEBUG = '%(levelname)-7s %(name)-30.30s: %(message)s' logging.basicConfig(level=logging.getLevelName('DEBUG'), format=LOG_FORMAT_DEBUG) @@ -26,6 +29,12 @@ if os.path.isfile(OLD_SETTING): )) warnings.warn(msg, DeprecationWarning) +OLD_BRAND_ENV = repo_root / 'utils' / 'brand.env' + +if os.path.isfile(OLD_BRAND_ENV): + msg = ('%s is no longer needed, remove the file' % (OLD_BRAND_ENV)) + warnings.warn(msg, DeprecationWarning) + from searx import redisdb, get_setting if not redisdb.initialize(): -- cgit v1.2.3-54-g00ecf