Skip to content

Commit 082b1dc

Browse files
restore the original gevent detection
bzr revid: [email protected]
1 parent 65c0538 commit 082b1dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openerp-gevent

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ psycogreen.gevent.patch_psycopg()
77

88
import openerp
99

10-
openerp.evented = True
11-
1210
if __name__ == "__main__":
1311
openerp.cli.main()

openerp/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
# Is the server running with gevent.
2929
evented = False
30+
if sys.modules.get("gevent") is not None:
31+
evented = True
3032

3133
# Make sure the OpenERP server runs in UTC. This is especially necessary
3234
# under Windows as under Linux it seems the real import of time is

0 commit comments

Comments
 (0)