[REF] Refactoring according to the review of CHS
[odoo/odoo.git] / openerp / __init__.py
index fe43983..a06c85d 100644 (file)
@@ -27,6 +27,8 @@ import sys
 
 # Is the server running with gevent.
 evented = False
+if sys.modules.get("gevent") is not None:
+    evented = True
 
 # Make sure the OpenERP server runs in UTC. This is especially necessary
 # under Windows as under Linux it seems the real import of time is