diff options
Diffstat (limited to 'utils/searxng_check.py')
-rw-r--r-- | utils/searxng_check.py | 9 |
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(): |