summaryrefslogtreecommitdiff
path: root/utils/searxng_check.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-01-07 18:33:34 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-01-09 16:31:19 +0100
commitf9c5727ddc74b9ee3bb95225c30f57c7aeb14806 (patch)
tree9cda98183b0efcbca8ba45b53d9502a36a0201a3 /utils/searxng_check.py
parent60bc5baea31c24a72cfb4f45322e326cc62caf23 (diff)
downloadsearxng-f9c5727ddc74b9ee3bb95225c30f57c7aeb14806.tar.gz
searxng-f9c5727ddc74b9ee3bb95225c30f57c7aeb14806.zip
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searxng_check.py')
-rw-r--r--utils/searxng_check.py9
1 files changed, 9 insertions, 0 deletions
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():