diff options
| author | Alexandre Flament <alex@al-f.net> | 2017-01-06 13:52:59 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2017-05-15 22:19:42 +0200 |
| commit | 9c91ab33f8f89f15e45301cc6f4b28fe3e3e72d5 (patch) | |
| tree | ef8d85e93a104d890256dc695cacd6cbd67b5e89 /searx/webapp.py | |
| parent | ee080feaed838da423d390d2e7b3828149df6589 (diff) | |
[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/webapp.py')
| -rw-r--r-- | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 253d781ad..7a1ddbbb2 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -100,7 +100,7 @@ static_files = get_static_files(static_path) default_theme = settings['ui']['default_theme'] templates_path = get_resources_directory(searx_dir, 'templates', settings['ui']['templates_path']) logger.debug('templates directory is %s', templates_path) -themes = get_themes(static_path) +themes = get_themes(templates_path) result_templates = get_result_templates(templates_path) global_favicons = [] for indice, theme in enumerate(themes): |