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 /setup | |
| 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 'setup')
| -rwxr-xr-x | setup/package.py | 2 | ||||
| -rw-r--r-- | setup/win32/win32_service.py | 2 | ||||
| -rw-r--r-- | setup/win32/win32_setup.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/setup/package.py b/setup/package.py index 6dedb2b78d8..fcb174435ac 100755 --- a/setup/package.py +++ b/setup/package.py @@ -22,7 +22,7 @@ from tempfile import NamedTemporaryFile #---------------------------------------------------------- # Utils #---------------------------------------------------------- -execfile(join(dirname(__file__), '..', 'odoo', 'release.py')) +exec(open(join(dirname(__file__), '..', 'odoo', 'release.py'), 'rb').read()) version = version.split('-')[0] docker_version = version.replace('+', '') timestamp = time.strftime("%Y%m%d", time.gmtime()) diff --git a/setup/win32/win32_service.py b/setup/win32/win32_service.py index 76b21f4050f..8eb32bbdbb6 100644 --- a/setup/win32/win32_service.py +++ b/setup/win32/win32_service.py @@ -11,7 +11,7 @@ import sys from os.path import dirname, join, split -execfile(join(dirname(__file__), '..', 'server', 'odoo', 'release.py')) +exec(open(join(dirname(__file__), '..', 'server', 'odoo', 'release.py'), 'rb').read()) class OdooService(win32serviceutil.ServiceFramework): diff --git a/setup/win32/win32_setup.py b/setup/win32/win32_setup.py index d973f90674a..a61081760d0 100644 --- a/setup/win32/win32_setup.py +++ b/setup/win32/win32_setup.py @@ -6,7 +6,7 @@ import py2exe from distutils.core import setup -execfile(os.path.join(os.path.dirname(__file__), '..', '..', 'odoo', 'release.py')) +exec(open(os.path.join(os.path.dirname(__file__), '..', '..', 'odoo', 'release.py'), 'rb').read()) def generate_files(): |
