def scan_packages(help_list=None):
"""
Find all packages with a help index and load it, returning a dictionary of
the packages found. If a partial help dictionary is passed, only packages
it does not contain will be added.
"""
help_list = dict() if help_list is None else help_list
for index_file in sublime.find_resources("hyperhelp.json"):
pkg_name = path.split(index_file)[0].split("/")[1]
if pkg_name not in help_list:
result = _load_index(pkg_name, index_file)
if result is not None:
help_list[result.package] = result
return help_list
评论列表
文章目录