[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:
parent
d348a0de79
commit
6c1ad196bf
|
@ -142,10 +142,13 @@ To import it, use `import openerp.addons.<module>.`.""" % (module_name, path))
|
||||||
return mod
|
return mod
|
||||||
|
|
||||||
def initialize_sys_path():
|
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
|
This ensures something like ``import crm`` (or even
|
||||||
not in the PYTHONPATH.
|
``import openerp.addons.crm``) works even if the addons are not in the
|
||||||
|
PYTHONPATH.
|
||||||
"""
|
"""
|
||||||
global ad_paths
|
global ad_paths
|
||||||
if ad_paths:
|
if ad_paths:
|
||||||
|
|
Loading…
Reference in New Issue