all repos — py-vite @ 51c8069348c6156efdb1825b4399af65f59fa1ab

the original vite, written in python

refactor(make.py): switch to importlib for importing config
icyphox icyph0x@protonmail.com
Sat, 17 Mar 2018 22:32:34 +0530
commit

51c8069348c6156efdb1825b4399af65f59fa1ab

parent

77903232dc0cd1f27307802a14a085ee90a91e64

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

jump to
M make.pymake.py

@@ -2,11 +2,11 @@ from markdown2 import markdown_path

import os import sys import jinja2 +import importlib # import config file try: - sys.path.append(os.getcwd()) - import config + importlib.import_module('config') except ImportError: print('Error: config.py not found')