diff options
author | Alexandre Flament <alex@al-f.net> | 2020-11-27 19:32:45 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-11-27 19:40:04 +0100 |
commit | b4b81a5e1a74f03926e3c2e6f8c5fade99f7eabb (patch) | |
tree | f72272f8c132759a2e792765632352a38007d1ba /searx/__init__.py | |
parent | 1cfe7f2a7543b2994a1afd0d81da1962d04423b0 (diff) | |
download | searxng-b4b81a5e1a74f03926e3c2e6f8c5fade99f7eabb.tar.gz searxng-b4b81a5e1a74f03926e3c2e6f8c5fade99f7eabb.zip |
[enh] settings.yml: add use_default_settings option (2nd version)
Diffstat (limited to 'searx/__init__.py')
-rw-r--r-- | searx/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/__init__.py b/searx/__init__.py index 214e554d4..9bbc7c8c3 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -16,7 +16,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >. ''' import logging -import searx.settings +import searx.settings_loader from os import environ from os.path import realpath, dirname, join, abspath, isfile @@ -24,7 +24,7 @@ from os.path import realpath, dirname, join, abspath, isfile searx_dir = abspath(dirname(__file__)) engine_dir = dirname(realpath(__file__)) static_path = abspath(join(dirname(__file__), 'static')) -settings, settings_load_message = searx.settings.load_settings() +settings, settings_load_message = searx.settings_loader.load_settings() if settings['ui']['static_path']: static_path = settings['ui']['static_path'] |