by auto-extending addons path with odoo.addons.__path__.
This patch also introduce
* an explicit declaration of odoo.addons as a namespace package
This is necessary because the standard way of declaring namespace
packages in setup.py does not work as long as odoo/__init__.py
contains code.
* a more reliable way to find odoo root path.
18 lines
566 B
Python
18 lines
566 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
""" Addons module.
|
|
|
|
This module serves to contain all Odoo addons, across all configured addons
|
|
paths. For the code to manage those addons, see odoo.modules.
|
|
|
|
Addons are made available under `odoo.addons` after
|
|
odoo.tools.config.parse_config() is called (so that the addons paths are
|
|
known).
|
|
|
|
This module also conveniently reexports some symbols from odoo.modules.
|
|
Importing them from here is deprecated.
|
|
|
|
"""
|
|
__import__('pkg_resources').declare_namespace(__name__)
|