Make the help module read documentation directory from config

This commit is contained in:
Sunil Mohan Adapa committed 2014-08-31 13:07:00 +05:30
1 parent 5ed58d6632
commit 33f8015835
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ def about(request):
def helppage(request, page):
"""Serve a help page from the 'doc' directory"""
try:
with open(os.path.join('doc', '%s.part.html' % page), 'r') \
with open(os.path.join(cfg.doc_dir, '%s.part.html' % page), 'r') \
as input_file:
main = input_file.read()
except IOError: