Merge pull request #2764 from mikamp116/patch-1

Fix bug for 'FileNotFoundError' in 'standalone_searx.py'
This commit is contained in:
Noémi Ványi 2021-04-16 17:26:21 +02:00 committed by GitHub
commit 312a51566c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ Example to run it from python:
... engine_cs = list(searx.engines.categories.keys()) ... engine_cs = list(searx.engines.categories.keys())
... # load module ... # load module
... spec = importlib.util.spec_from_file_location( ... spec = importlib.util.spec_from_file_location(
... 'utils.standalone_searx', 'utils/standalone_searx.py') ... 'utils.standalone_searx', 'searx_extra/standalone_searx.py')
... sas = importlib.util.module_from_spec(spec) ... sas = importlib.util.module_from_spec(spec)
... spec.loader.exec_module(sas) ... spec.loader.exec_module(sas)
... # use function from module ... # use function from module