forked from zaclys/searxng
Update standalone_searx.py
Fix bug for 'FileNotFoundError: [Errno 2] No such file or directory: 'utils/standalone_searx.py' ' in example to run standalone_searx.py from python
This commit is contained in:
parent
6c0114567e
commit
4652ef0f06
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue