diff options
| author | =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= <stephane.bidoul@acsone.eu> | 2016-09-27 12:00:44 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2016-09-30 12:05:49 +0200 |
| commit | 389c2ba97ba83dea01949d2a3cad295bd710d9ef (patch) | |
| tree | 9505bb68bce48a29df770936a25fe49744dbcca9 /setup | |
| parent | ffd3c513ed3178fc87a79b9244ef5967d5ebcdef (diff) | |
[REF] packaging: make odoo a namespaced package
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.
Diffstat (limited to 'setup')
| -rw-r--r-- | setup/odoo | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setup/odoo b/setup/odoo index 3cd3358ee23..b2a0e17ff83 100644 --- a/setup/odoo +++ b/setup/odoo @@ -1,4 +1,5 @@ #!/usr/bin/env python +__import__('pkg_resources').declare_namespace('odoo.addons') import odoo if __name__ == "__main__": |
