NeuralBody / lib /visualizers /make_visualizer.py
pengsida
initial commit
1ba539f
raw
history blame contribute delete
197 Bytes
import os
import imp
def make_visualizer(cfg):
module = cfg.visualizer_module
path = cfg.visualizer_path
visualizer = imp.load_source(module, path).Visualizer()
return visualizer