[IMP] openerp.modules: updated initialize_sys_path() docstring (although its name is now inaccurate).

bzr revid: vmt@openerp.com-20120110092730-rqewzuo1wa5wy2q5
This commit is contained in:
Vo Minh Thu 2012-01-10 10:27:30 +01:00
parent d348a0de79
commit 6c1ad196bf
1 changed files with 6 additions and 3 deletions

View File

@ -142,10 +142,13 @@ To import it, use `import openerp.addons.<module>.`.""" % (module_name, path))
return mod
def initialize_sys_path():
""" Add all addons paths in sys.path.
"""
Setup an import-hook to be able to import OpenERP addons from the different
addons paths.
This ensures something like ``import crm`` works even if the addons are
not in the PYTHONPATH.
This ensures something like ``import crm`` (or even
``import openerp.addons.crm``) works even if the addons are not in the
PYTHONPATH.
"""
global ad_paths
if ad_paths: