def load_help(pkg_info, help_file):
"""
Load and return the contents of the help file with the given name from the
provided package. The help file name should be relative to the set document
root for the package given.
Returns the contents of the help file or None.
"""
try:
return sublime.load_resource("%s/%s" % (pkg_info.doc_root, help_file))
except:
pass
return None
评论列表
文章目录