summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/webapp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 8a720fdc6..6ad9ef06e 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -765,7 +765,9 @@ def page_not_found(e):
def run():
- initialize_engines(settings['engines'])
+ if not searx_debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true":
+ initialize_engines(settings['engines'])
+
app.run(
debug=searx_debug,
use_debugger=searx_debug,