summaryrefslogtreecommitdiff
path: root/addons/web/common/http.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2012-01-09 14:09:30 +0100
committerVo Minh Thu <vmt@openerp.com>2012-01-09 14:09:30 +0100
commit6ab102ec11ceaaa9618f4eabc9ba9bef329cf128 (patch)
treec40f33bb37732c20c2e736b1f85b4fd14b2e7448 /addons/web/common/http.py
parentc392fc627690ec5aa0bb394faeaa1270cf1ae3e9 (diff)
[IMP] addons: use `openerp.addons.<module>` instead of `<module>` with __import__.
bzr revid: vmt@openerp.com-20120109130930-xt13kjrxww2whdf0
Diffstat (limited to 'addons/web/common/http.py')
-rw-r--r--addons/web/common/http.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/web/common/http.py b/addons/web/common/http.py
index 0c239decb64..1e84689caad 100644
--- a/addons/web/common/http.py
+++ b/addons/web/common/http.py
@@ -478,8 +478,6 @@ class Root(object):
"""
statics = {}
for addons_path in self.config.addons_path:
- if addons_path not in sys.path:
- sys.path.insert(0, addons_path)
for module in os.listdir(addons_path):
if module not in addons_module:
manifest_path = os.path.join(addons_path, module, '__openerp__.py')
@@ -488,7 +486,7 @@ class Root(object):
manifest = ast.literal_eval(open(manifest_path).read())
manifest['addons_path'] = addons_path
_logger.info("Loading %s", module)
- m = __import__(module)
+ m = __import__('openerp.addons.' + module)
addons_module[module] = m
addons_manifest[module] = manifest
statics['/%s/static' % module] = path_static