on master help sign in
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

commit4652ef0f06235d18cd5ccae7735f5b61d21dba77 authorMikayel Mardanyan Petrosyan <48054735+mikamp116@users.noreply.github.com> dateTue 13 Apr 2021, 22:26 (6 years ago) parent6c01145
1 file changed+1−1
searx_extra/standalone_searx.py+1−1
searx_extra/standalone_searx.py+1−1
@@ -31,7 +31,7 @@ Example to run it from python:
3131... engine_cs = list(searx.engines.categories.keys())
3232... # load module
3333... spec = importlib.util.spec_from_file_location(
34−... 'utils.standalone_searx', 'utils/standalone_searx.py')
34+... 'utils.standalone_searx', 'searx_extra/standalone_searx.py')
3535... sas = importlib.util.module_from_spec(spec)
3636... spec.loader.exec_module(sas)
3737... # use function from module