diff options
| author | Simon Lejeune <sle@openerp.com> | 2015-12-24 15:28:46 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-09-07 18:09:46 +0200 |
| commit | 76c7041c5bb309844008c188683b7a55f186fb7b (patch) | |
| tree | 5b8cc36384aeb3b004062110f245e448a767183d /odoo.py | |
| parent | e0784ee0b7007c0945e592785a4f16642f2bc1e9 (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-x | odoo.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() |
