Consider path more carefully for when markdown-server is downloaded from pip

This commit is contained in:
ohbarye
2016-08-02 01:48:08 +09:00
parent 9361e5e6e2
commit 62a199cfe4
3 changed files with 16 additions and 10 deletions
+9 -5
View File
@@ -1,12 +1,16 @@
import os
ms_encoding = 'utf-8'
ms_port = '8009'
ms_host = 'localhost'
ms_root = './'
ms_debug = True
ms_reloader = True
html_extension = '.html'
markdown_root = 'markdownserver/resources/markdown/'
html_root = 'markdownserver/resources/html/'
css_root = 'markdownserver/resources/css/'
root_path = os.path.dirname(__file__)
resource_dir = os.path.join(root_path,'resources')
markdown_dir = os.path.join(resource_dir,'markdown')
html_dir = os.path.join(resource_dir,'html')
css_dir = os.path.join(resource_dir,'css')
css_name = 'github.css'
markdown_type = 'gfm'
css_path = os.path.join(css_dir,css_name)
markdown_type = 'gfm'