all repos — py-vite @ 21bea7e31592cb98b8177aac4662822d72779571

the original vite, written in python

feat(make.py): error handling
icyphox icyph0x@protonmail.com
Sun, 18 Mar 2018 00:16:27 +0530
commit

21bea7e31592cb98b8177aac4662822d72779571

parent

fbf21e922af8c1b34ee6b7acdff8de0c2c87f5a4

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

jump to
M make.pymake.py

@@ -5,8 +5,11 @@ import jinja2

import importlib # import config file -sys.path.append(os.getcwd()) -import config +try: + sys.path.append(os.getcwd()) + import config +except ModuleNotFoundError: + print('Error: config.py not found') # constants PAGES_PATH = 'pages/'