From 9c91ab33f8f89f15e45301cc6f4b28fe3e3e72d5 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 6 Jan 2017 13:52:59 +0100 Subject: [mod] settings.yml can be /etc/searx/settings.yml The exact order is * first from SEARX_SETTINGS_PATH, * if not found then from searx code base, * if not found then from /etc/searx/settings.yml * if not found an exception stops searx loading --- searx/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/utils.py') diff --git a/searx/utils.py b/searx/utils.py index 9a08197cc..498f8d0bf 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -186,9 +186,9 @@ def get_resources_directory(searx_directory, subdirectory, resources_directory): return resources_directory -def get_themes(static_path): +def get_themes(templates_path): """Returns available themes list.""" - themes = os.listdir(os.path.join(static_path, 'themes')) + themes = os.listdir(templates_path) if '__common__' in themes: themes.remove('__common__') return themes -- cgit v1.2.3