How can do the same thing in Python 27 ?
if sys.version_info >= (3, 5): import importlib.util spec = importlib.util.spec_from_file_location(module_name, filename) module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module
How can do the same thing in Python 27 ?
if sys.version_info >= (3, 5): import importlib.util spec = importlib.util.spec_from_file_location(module_name, filename) module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module