mirror of
https://github.com/searxng/searxng.git
synced 2024-08-22 22:20:42 +02:00
[fix] utils/build_env.py: make sure to always use searx/settings.yml
ignore SEARX_SETTINGS_PATH [1] https://github.com/searx/searx/pull/2408#pullrequestreview-565247895 Suggested-by: @dalf [1] Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
4853a29803
commit
a31cb68668
@ -4,10 +4,17 @@
|
|||||||
|
|
||||||
# set path
|
# set path
|
||||||
import sys
|
import sys
|
||||||
from os.path import realpath, dirname, join, sep
|
import os
|
||||||
|
from os.path import realpath, dirname, join, sep, abspath
|
||||||
|
|
||||||
repo_root = realpath(dirname(realpath(__file__)) + sep + '..')
|
repo_root = realpath(dirname(realpath(__file__)) + sep + '..')
|
||||||
sys.path.insert(0, repo_root)
|
sys.path.insert(0, repo_root)
|
||||||
|
|
||||||
|
# Under the assumption that a brand is always a fork assure that the settings
|
||||||
|
# file from reposetorie's working tree is used to generate the build_env, not
|
||||||
|
# from /etc/searx/settings.yml.
|
||||||
|
os.environ['SEARX_SETTINGS_PATH'] = abspath(dirname(__file__) + sep + 'settings.yml')
|
||||||
|
|
||||||
from searx import brand
|
from searx import brand
|
||||||
|
|
||||||
name_val = [
|
name_val = [
|
||||||
|
Loading…
Reference in New Issue
Block a user