all repos — py-vite @ bb98e0cfa31dde650c1041aea6b9b86855cb36a2

the original vite, written in python

refactor: importing of make.py
Anirudh icyph0x@protonmail.com
Fri, 13 Apr 2018 21:15:23 +0530
commit

bb98e0cfa31dde650c1041aea6b9b86855cb36a2

parent

f2f9eb9e25dfaf46f23f5d5e9d622b58d5f68c6a

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

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

@@ -40,7 +40,7 @@ os.mkdir(os.path.join(path, 'pages'))

os.mkdir(os.path.join(path, 'templates')) create_config(path) os.symlink(os.path.join(cur_path, 'make.py'), - os.path.join(abs_path, '.make.py')) + os.path.join(abs_path, 'make.py')) create_template(path) print(good('Created project directory at %s.' % (abs_path))) except FileExistsError:

@@ -87,7 +87,7 @@

def build_project(path): try: os.chdir(path) - importlib.import_module('.make') + importlib.import_module('make') except FileNotFoundError as e: print(bad('Error: no such file or directory: %s' % (path)))