all repos — py-vite @ a008cfde0dc8f559995397f07fbbdb7c6e61a3e8

the original vite, written in python

fix: build
icyphox icyph0x@protonmail.com
Fri, 16 Mar 2018 14:50:24 +0530
commit

a008cfde0dc8f559995397f07fbbdb7c6e61a3e8

parent

b9f478f66c7783f9df896e5e87809f0eb8ef7821

3 files changed, 4 insertions(+), 2 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,1 +1,2 @@

.env/ +__pycache__/
M make.pymake.py

@@ -11,5 +11,5 @@ html = markdown_path(PAGES_PATH + filename)

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)) + print('Rendered %s' % (html_file))
M vite.pyvite.py

@@ -33,8 +33,9 @@ print('Error: specified path exists.')

def build_project(path): try: + sys.path.append(path) os.chdir(path) - import make.py + import make except FileNotFoundError as e: print('Error: no such file or directory: %s' % (path))