Show More
@@ -129,11 +129,7 b' def loaddoc(topic):' | |||||
129 | """Return a delayed loader for help/topic.txt.""" |
|
129 | """Return a delayed loader for help/topic.txt.""" | |
130 |
|
130 | |||
131 | def loader(): |
|
131 | def loader(): | |
132 | for dir in ('.', '..'): |
|
132 | docdir = os.path.join(util.datapath, 'help') | |
133 | docdir = os.path.join(util.datapath, dir, 'help') |
|
|||
134 | if os.path.isdir(docdir): |
|
|||
135 | break |
|
|||
136 |
|
||||
137 | path = os.path.join(docdir, topic + ".txt") |
|
133 | path = os.path.join(docdir, topic + ".txt") | |
138 | doc = gettext(util.readfile(path)) |
|
134 | doc = gettext(util.readfile(path)) | |
139 | for rewriter in helphooks.get(topic, []): |
|
135 | for rewriter in helphooks.get(topic, []): |
General Comments 0
You need to be logged in to leave comments.
Login now