diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2021-10-06 18:24:19 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-10-06 18:45:00 +0200 |
| commit | de0249ddae94cc5f320b3da7b434486ff22dc42d (patch) | |
| tree | a7b7756fe987e46978704f93bae895adcabb1975 /docs | |
| parent | feb2d4dda575eb1501fb5a8427de364bed7bc179 (diff) | |
[fix] don't mix loaded modules with imported modules (sys.modules)
The utils.load_module() function is used to load a python file (aka module) and
return the module's namespace. SearXNG uses this function to load *engines and
answerers* from arbitrary locations with arbitrary modifications. These are not
real python modules and it is not intended to mix this *engines and answerers*
with the python modules registered in sys.modules.
Closes: https://github.com/searxng/searxng/issues/312
Suggested-by: @dalf in https://github.com/searxng/searxng/issues/312
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions