all repos — py-vite @ a179fc29ba303ca4232f85867cc3783a685fbbee

the original vite, written in python

fix(make.py): path issues
icyphox icyph0x@protonmail.com
Fri, 16 Mar 2018 10:15:42 +0530
commit

a179fc29ba303ca4232f85867cc3783a685fbbee

parent

ca6d2e45c01a8921eff666412feb21e2ce8fc624

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M make.pymake.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)