get README from the correct path
This commit is contained in:
@@ -463,9 +463,9 @@ def get_readme(path, no_read):
|
||||
|
||||
if no_read:
|
||||
return ""
|
||||
if not os.path.exists("README.md"):
|
||||
if not os.path.exists(os.path.join(path,"README.md")):
|
||||
return ""
|
||||
with open("README.md", "rt") as fp:
|
||||
with open(os.path.join(path,"README.md"), "rt") as fp:
|
||||
if MARKDOWN_AVAILABLE:
|
||||
return "<div class=readme>{}</div>".format(
|
||||
markdown.markdown(
|
||||
|
||||
Reference in New Issue
Block a user