summaryrefslogtreecommitdiff
path: root/openerp/modules/module.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2013-02-12 09:53:11 +0100
committerVo Minh Thu <vmt@openerp.com>2013-02-12 09:53:11 +0100
commite746cb1654bac97c41b72fb807644a608da5b46b (patch)
tree6d4c0ce37d176317d491340be89bc81de69b212c /openerp/modules/module.py
parent2d6180c35c9481b2d72a9d805230bbaa5402f6f4 (diff)
[FIX] registry: fix a bug where RegistryManager.new() could return an out-of-date registry.
bzr revid: vmt@openerp.com-20130212085311-o53wv7yful39kktd
Diffstat (limited to 'openerp/modules/module.py')
-rw-r--r--openerp/modules/module.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/modules/module.py b/openerp/modules/module.py
index 98955aff492..ec1c6a1708b 100644
--- a/openerp/modules/module.py
+++ b/openerp/modules/module.py
@@ -400,7 +400,7 @@ def load_openerp_module(module_name):
initialize_sys_path()
try:
mod_path = get_module_path(module_name)
- zip_mod_path = mod_path + '.zip'
+ zip_mod_path = '' if not mod_path else mod_path + '.zip'
if not os.path.isfile(zip_mod_path):
__import__('openerp.addons.' + module_name)
else: