refactor: importing of make.py
Anirudh icyph0x@protonmail.com
Fri, 13 Apr 2018 21:15:23 +0530
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
vite/vite.py
→
vite/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)))