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 View File

17
 (C) 2013- by Adam Tauber, <asciimoo@gmail.com>
17
 (C) 2013- by Adam Tauber, <asciimoo@gmail.com>
18
 '''
18
 '''
19
 
19
 
20
+from gevent import monkey; monkey.patch_all()
21
+
22
+
20
 if __name__ == '__main__':
23
 if __name__ == '__main__':
21
     from sys import path
24
     from sys import path
22
     from os.path import realpath, dirname
25
     from os.path import realpath, dirname
473
 
476
 
474
 
477
 
475
 def run():
478
 def run():
476
-    from gevent import monkey
477
-    monkey.patch_all()
478
-
479
     app.run(
479
     app.run(
480
         debug=settings['server']['debug'],
480
         debug=settings['server']['debug'],
481
         use_debugger=settings['server']['debug'],
481
         use_debugger=settings['server']['debug'],