[FIX] ad_paths: makes sure the server addons path is absolute (needed when using cProfile).

bzr revid: vmt@openerp.com-20120903145828-8yflgc0lfqn6woai
This commit is contained in:
Vo Minh Thu 2012-09-03 16:58:28 +02:00
parent 30425f2f2a
commit 4498663baf
1 changed files with 1 additions and 1 deletions

View File

@ -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):