From 1f2dc6c64785ab962efbeed0cfc093fdd3f41bf0 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 14 Jul 2020 18:56:57 +0200 Subject: [enh] add external plugin support --- searx/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/__init__.py') diff --git a/searx/__init__.py b/searx/__init__.py index 2f3ebfcfe..e3036b766 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -30,6 +30,7 @@ except: searx_dir = abspath(dirname(__file__)) engine_dir = dirname(realpath(__file__)) +static_path = abspath(join(dirname(__file__), 'static')) def check_settings_yml(file_name): -- cgit v1.2.3 From dff879d07d3cd937526804dda4f07d2e84249c59 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 25 Jul 2020 03:20:29 +0200 Subject: [fix] resolve minor review issues --- searx/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'searx/__init__.py') diff --git a/searx/__init__.py b/searx/__init__.py index e3036b766..1ba03ad63 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -56,6 +56,9 @@ if not settings_path: with open(settings_path, 'r', encoding='utf-8') as settings_yaml: settings = safe_load(settings_yaml) +if settings['ui']['static_path']: + static_path = settings['ui']['static_path'] + ''' enable debug if the environnement variable SEARX_DEBUG is 1 or true -- cgit v1.2.3