__init__.py 335 B

123456789
  1. # SPDX-License-Identifier: AGPL-3.0-or-later
  2. # pylint: disable=missing-module-docstring
  3. import os
  4. from os.path import dirname, sep, abspath
  5. # In unit tests the user settings from unit/settings/test_settings.yml are used.
  6. os.environ['SEARXNG_SETTINGS_PATH'] = abspath(dirname(__file__) + sep + 'settings' + sep + 'test_settings.yml')