blob: c24a19678c3902bf8a47cde1e36df4b8fed5520b [file] [log] [blame]
def import_module(name, path):
import importlib.util
spec = importlib.util.spec_from_file_location(name, path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module