fix(make.py): path issues
icyphox icyph0x@protonmail.com
Fri, 16 Mar 2018 10:15:42 +0530
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
make.py
→
make.py
@@ -1,11 +1,12 @@
from markdown2 import markdown_path from glob import glob +import os # constants PAGES_PATH = 'pages/' BUILD_PATH = 'build/' -for filename in glob(PAGES_PATH + '*.md'): +for filename in os.listdir(PAGES_PATH): html = markdown_path(PAGES_PATH + filename) with open(BUILD_PATH + filename + '.html', 'w') as f: f.write(html)