refactor(make.py): better filename
icyphox icyph0x@protonmail.com
Fri, 16 Mar 2018 11:33:27 +0530
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
make.py
→
make.py
@@ -8,6 +8,8 @@ BUILD_PATH = 'build/'
for filename in os.listdir(PAGES_PATH): html = markdown_path(PAGES_PATH + filename) - with open(BUILD_PATH + filename + '.html', 'w') as f: + html_file = os.path.splitext(filename)[0] + '.html' + with open(BUILD_PATH + html_file, 'w') as f: f.write(html) + print('Rendered %s.' % (html_file))