##// END OF EJS Templates
help: don't search randomly for help data - trust util.datapath...
Mads Kiilerich -
r22637:149141c3 default
parent child Browse files
Show More
@@ -129,11 +129,7 b' def loaddoc(topic):'
129 129 """Return a delayed loader for help/topic.txt."""
130 130
131 131 def loader():
132 for dir in ('.', '..'):
133 docdir = os.path.join(util.datapath, dir, 'help')
134 if os.path.isdir(docdir):
135 break
136
132 docdir = os.path.join(util.datapath, 'help')
137 133 path = os.path.join(docdir, topic + ".txt")
138 134 doc = gettext(util.readfile(path))
139 135 for rewriter in helphooks.get(topic, []):
General Comments 0
You need to be logged in to leave comments. Login now