commit: 68cbf0448f0b24ec9d15301659576ace695e06ef
parent: a605377c40e5f9d5ce80a222df65b605dfcd3907
Author: Adam Tauber <asciimoo@gmail.com>
Date: Tue, 27 Dec 2016 17:26:25 +0100
[fix] do not reload engines twice if started with debug mode
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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,