Fix bug related to path

This commit is contained in:
ohbarye
2016-08-02 02:24:58 +09:00
parent 27f48ef26c
commit 67ebac4fad
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ converter = MarkdownConverter()
def gfmize(resource):
html_file_name = os.path.basename(converter.convert(resource))
return static_file(os.path.join(html_dir, html_file_name), root=root_path)
return static_file(os.path.join('resources/html', html_file_name), root=root_path)
def main():
run(host=ms_host,port=ms_port,debug=ms_debug,reloader=ms_reloader)
+1 -1
View File
@@ -36,7 +36,7 @@ class MarkdownConverter(object):
return md_file.read()
def write_html(self,body,file_name,dst):
html_path = os.path.join(html_root, file_name + html_extension)
html_path = os.path.join(html_dir, file_name + html_extension)
if dst != "":
html_path = dst