[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:
parent
30425f2f2a
commit
4498663baf
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue