summaryrefslogtreecommitdiff
path: root/odoo.py
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2015-12-24 15:28:46 +0100
committerChristophe Simonis <chs@odoo.com>2016-09-07 18:09:46 +0200
commit76c7041c5bb309844008c188683b7a55f186fb7b (patch)
tree5b8cc36384aeb3b004062110f245e448a767183d /odoo.py
parente0784ee0b7007c0945e592785a4f16642f2bc1e9 (diff)
[REF] server: remove the openerp-gevent file
* use a special arg in odoo.py * note that the previous implementation was relying on the fact that the openerp-gevent file was located in the same directory than the odoo.py file. This was no longer true since rev a0eb172cab590982168492ad16ad90c2228c6424 This commit brings back this behavior.
Diffstat (limited to 'odoo.py')
-rwxr-xr-xodoo.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/odoo.py b/odoo.py
index 30d6983ff5a..e95814036a8 100755
--- a/odoo.py
+++ b/odoo.py
@@ -153,6 +153,12 @@ def main():
elif len(sys.argv) == 2 and sys.argv[1] in cmds:
cmds[sys.argv[1]]()
else:
+ if sys.argv[1] == 'gevent':
+ sys.argv.remove('gevent')
+ import gevent.monkey
+ gevent.monkey.patch_all()
+ import psycogreen.gevent
+ psycogreen.gevent.patch_psycopg()
import odoo
odoo.cli.main()