From 4498663baf2b95d28559c95e66379ea4b515c64d Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Mon, 3 Sep 2012 16:58:28 +0200 Subject: [PATCH] [FIX] ad_paths: makes sure the server addons path is absolute (needed when using cProfile). bzr revid: vmt@openerp.com-20120903145828-8yflgc0lfqn6woai --- openerp/modules/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/modules/module.py b/openerp/modules/module.py index b1d4de31bce..8cb6f17324b 100644 --- a/openerp/modules/module.py +++ b/openerp/modules/module.py @@ -162,7 +162,7 @@ def initialize_sys_path(): return ad_paths = map(lambda m: os.path.abspath(tools.ustr(m.strip())), tools.config['addons_path'].split(',')) - ad_paths.append(_ad) # for get_module_path + ad_paths.append(os.path.abspath(_ad)) # for get_module_path sys.meta_path.append(AddonsImportHook()) def get_module_path(module, downloaded=False, display_warning=True):