diff options
| author | xmo-odoo <xmo@odoo.com> | 2017-04-27 13:59:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-27 13:59:33 +0200 |
| commit | 2e6a589f417af48e3322955ffff6e94b6d8a24e3 (patch) | |
| tree | aa613ecc1f74a9531a03de89aa2bdc7bb32eed3b /odoo/modules/module.py | |
| parent | de4a2216b953abb86094c9bfa5f45b1eaaa79d3d (diff) | |
[FIX] builtins removed from Python 3
* Reverse wrapper courtesy of @rco-odoo's original P3 branch
* thin compat module stripped down from werkzeug (to augment as needed)
issue 8530
Diffstat (limited to 'odoo/modules/module.py')
| -rw-r--r-- | odoo/modules/module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/modules/module.py b/odoo/modules/module.py index 398585ba239..dd1485e1d8a 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -78,7 +78,7 @@ class AddonsHook(object): # execute source in context of module *after* putting everything in # sys.modules, so recursive import works - execfile(modfile, new_mod.__dict__) + exec(open(modfile, 'rb').read(), new_mod.__dict__) # people import openerp.addons and expect openerp.addons.<module> to work setattr(odoo.addons, addon_name, new_mod) |
