summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2017-01-06 13:52:59 +0100
committerAlexandre Flament <alex@al-f.net>2017-05-15 22:19:42 +0200
commit9c91ab33f8f89f15e45301cc6f4b28fe3e3e72d5 (patch)
treeef8d85e93a104d890256dc695cacd6cbd67b5e89 /searx/utils.py
parentee080feaed838da423d390d2e7b3828149df6589 (diff)
downloadsearxng-9c91ab33f8f89f15e45301cc6f4b28fe3e3e72d5.tar.gz
searxng-9c91ab33f8f89f15e45301cc6f4b28fe3e3e72d5.zip
[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
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py4
1 files changed, 2 insertions, 2 deletions
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