Browse Source

[fix] utils/build_env.py: make sure to always use searx/settings.yml

ignore SEARX_SETTINGS_PATH
Alexandre Flament 4 years ago
parent
commit
d5882147e0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      utils/build_env.py

+ 1 - 0
utils/build_env.py

@@ -9,6 +9,7 @@ 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)
+os.environ['SEARX_SETTINGS_PATH'] = abspath(dirname(__file__) + '/settings.yml')
 
 
 # Under the assumption that a brand is always a fork assure that the settings
 # 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
 # file from reposetorie's working tree is used to generate the build_env, not