mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Make the help module read documentation directory from config
This commit is contained in:
1 parent
5ed58d6632
commit
33f8015835
3 files changed
+5
-2
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user