def get_bundle_root(bundle_name, absolute=False):
"""
Installation location for a given bundle.
Args:
bundle_name: the bundle name.
absolute: should return an absolute path.
Returns:
The tentative installation location.
"""
bundle_root = join(BUNDLE_ROOT, sanitize_name(bundle_name))
assert bundle_root.startswith(sep)
if absolute:
return bundle_root
return bundle_root[len(sep):]
评论列表
文章目录