137
137
def _load_from_file(topic_name):
138
138
"""Load help from a file.
142
142
base = osutils.dirname(bzrlib.__file__)
143
143
if getattr(sys, 'frozen', None): # bzr.exe
144
144
base = osutils.abspath(osutils.pathjoin(base, '..', '..'))
145
filename = osutils.pathjoin(base, 'help_topics', 'en', topic_name + ".txt")
146
146
return open(filename, 'rU').read()