on master help sign in
Merge pull request #73 from posativ/fix/gevent-monkeypatch

fix gevent's monkey patch position

commit959a67420ebdce5e33c24fa596d043695cc57b89 authorAdam Tauber <asciimoo@gmail.com> dateThu 3 Jul 2014, 22:42 (12 years ago) parent2f4c229cbdc1e1
1 file changed+3−3
searx/webapp.py+3−3
searx/webapp.py+3−3
@@ -17,6 +17,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
1717(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
1818'''
1919
20+from gevent import monkey; monkey.patch_all()
21+
22+
2023if __name__ == '__main__':
2124 from sys import path
2225 from os.path import realpath, dirname
@@ -473,9 +476,6 @@ def favicon():
473476
474477
475478def run():
476− from gevent import monkey
477− monkey.patch_all()
478−
479479 app.run(
480480 debug=settings['server']['debug'],
481481 use_debugger=settings['server']['debug'],