restore the original gevent detection

bzr revid: al@openerp.com-20130909231946-aglho23enxhfwm0i
This commit is contained in:
Antony Lesuisse 2013-09-10 01:19:46 +02:00
parent 65c0538a83
commit 082b1dc9fc
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,5 @@ psycogreen.gevent.patch_psycopg()
import openerp import openerp
openerp.evented = True
if __name__ == "__main__": if __name__ == "__main__":
openerp.cli.main() openerp.cli.main()

View File

@ -27,6 +27,8 @@ import sys
# Is the server running with gevent. # Is the server running with gevent.
evented = False evented = False
if sys.modules.get("gevent") is not None:
evented = True
# Make sure the OpenERP server runs in UTC. This is especially necessary # 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 # under Windows as under Linux it seems the real import of time is