summaryrefslogtreecommitdiff
path: root/odoo/cli
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-09-09 16:10:13 +0000
committerXavier Morel <xmo@odoo.com>2019-09-20 05:58:16 +0000
commitd47083e6d219bdd2ca0e36a41aef5274f67a70f1 (patch)
tree14328a15f2a713c7de7e756c28ce1f28e0e7b6f5 /odoo/cli
parent18299d7e5051cdad29854bc7280db5002a209500 (diff)
[IMP] module.py: deprecate openerp
[PEP-594] is deprecating the `imp` module, that module is used in `module.py` in order to dynamically import addons using any of the `odoo.addons` or `openerp.addons` import anchor. We are deprecating `openerp` module/addons imports in v13 in order to remove the support in v14 and greatly simplify how modules/addons are loaded. If you are still using the old `import openerp` or `import openerp.addons`, `import odoo` and `import odoo.addons` are drop-in replacements. The `odoo.modules.module.ad_paths` addon paths list has been deprecated too. The list is now accessible on `odoo.addons.__path__` where they are now directly loaded [2]. See also: [PEP-594]: https://python.org/dev/peps/pep-0594/ [2]: https://packaging.python.org/guides/packaging-namespace-packages/ closes odoo/odoo#36597 Task: 2003936 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'odoo/cli')
-rw-r--r--odoo/cli/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/cli/server.py b/odoo/cli/server.py
index fcb7f2de700..f6214aaa6e7 100644
--- a/odoo/cli/server.py
+++ b/odoo/cli/server.py
@@ -59,7 +59,7 @@ def report_configuration():
_logger.info("Odoo version %s", __version__)
if os.path.isfile(config.rcfile):
_logger.info("Using configuration file at " + config.rcfile)
- _logger.info('addons paths: %s', odoo.modules.module.ad_paths)
+ _logger.info('addons paths: %s', odoo.addons.__path__)
if config.get('upgrades_paths'):
_logger.info('upgrades path: %s', config['upgrades_paths'])
host = config['db_host'] or os.environ.get('PGHOST', 'default')