summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-07-03 22:42:04 +0200
committerAdam Tauber <asciimoo@gmail.com>2014-07-03 22:42:04 +0200
commit959a67420ebdce5e33c24fa596d043695cc57b89 (patch)
tree98f7494adb948833db9823052168492f8b097961
parent2f4c2298ba94caf0242b5b6493c14a951cda3d08 (diff)
parentcbdc1e1e76835270cb1d67b99b4caa385000498d (diff)
Merge pull request #73 from posativ/fix/gevent-monkeypatch
fix gevent's monkey patch position
-rw-r--r--searx/webapp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 000543e06..2b50d5f13 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -17,6 +17,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
'''
+from gevent import monkey; monkey.patch_all()
+
+
if __name__ == '__main__':
from sys import path
from os.path import realpath, dirname
@@ -473,9 +476,6 @@ def favicon():
def run():
- from gevent import monkey
- monkey.patch_all()
-
app.run(
debug=settings['server']['debug'],
use_debugger=settings['server']['debug'],