get README from the correct path

This commit is contained in:
ville rantanen
2021-10-14 09:19:51 +03:00
parent 2d33954d4c
commit 96120bad3f

View File

@@ -463,9 +463,9 @@ def get_readme(path, no_read):
if no_read: if no_read:
return "" return ""
if not os.path.exists("README.md"): if not os.path.exists(os.path.join(path,"README.md")):
return "" return ""
with open("README.md", "rt") as fp: with open(os.path.join(path,"README.md"), "rt") as fp:
if MARKDOWN_AVAILABLE: if MARKDOWN_AVAILABLE:
return "<div class=readme>{}</div>".format( return "<div class=readme>{}</div>".format(
markdown.markdown( markdown.markdown(