summaryrefslogtreecommitdiff
path: root/searx_extra
diff options
context:
space:
mode:
authorMikayel Mardanyan Petrosyan <48054735+mikamp116@users.noreply.github.com>2021-04-13 22:26:45 +0200
committerGitHub <noreply@github.com>2021-04-13 22:26:45 +0200
commit4652ef0f06235d18cd5ccae7735f5b61d21dba77 (patch)
tree004a6e255ccfd1ebfc8b15ed56931f13be4b3915 /searx_extra
parent6c0114567e7ba1b3f4a54327eddf658b7474ca58 (diff)
downloadsearxng-4652ef0f06235d18cd5ccae7735f5b61d21dba77.tar.gz
searxng-4652ef0f06235d18cd5ccae7735f5b61d21dba77.zip
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
Diffstat (limited to 'searx_extra')
-rwxr-xr-xsearx_extra/standalone_searx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx_extra/standalone_searx.py b/searx_extra/standalone_searx.py
index f52b7e80c..b30762d3f 100755
--- a/searx_extra/standalone_searx.py
+++ b/searx_extra/standalone_searx.py
@@ -31,7 +31,7 @@ Example to run it from python:
... engine_cs = list(searx.engines.categories.keys())
... # load module
... 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)
... spec.loader.exec_module(sas)
... # use function from module