Browse Source

fix gevent's monkey patch position

Martin Zimmermann 10 years ago
parent
commit
cbdc1e1e76
1 changed files with 3 additions and 3 deletions
  1. 3 3
      searx/webapp.py

+ 3 - 3
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'],