all repos — py-vite @ b2573e7ec937d80c6e352a377b21b12708c82c48

the original vite, written in python

fix: correct path for static/ dir
Anirudh icyph0x@pm.me
Tue, 19 Jun 2018 12:40:01 +0530
commit

b2573e7ec937d80c6e352a377b21b12708c82c48

parent

b13af2fe73bfd8e93cfc5290e5b2f00870fe5daa

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

jump to
M vite/vite.pyvite/vite.py

@@ -182,9 +182,8 @@ else:

try: clean() html_gen() - if os.path.exists(os.path.join(PAGES_PATH, 'static')): - shutil.copytree(os.path.join(PAGES_PATH, 'static'), os.path.join(BUILD_PATH)) + if os.path.exists(os.path.join(os.getcwd(), 'static')): + shutil.copytree(os.path.join(os.getcwd(), 'static'), os.path.join(BUILD_PATH, 'static')) print(good('Done in %0.5fs.' % (time.process_time() - start))) except jinja2.exceptions.TemplateNotFound: print(bad('Error: specified template not found: %s' % TEMPL_FILE)) -