diff options
Diffstat (limited to 'run.py')
-rwxr-xr-x | run.py | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +#!/usr/bin/env python3 + +import sys +import yaml + +FILE = 'config.yaml' +if len(sys.argv) > 1: + FILE = sys.argv[1] + +conf = None +with open(FILE, 'r') as f: + conf = yaml.safe_load(f) + +for plotter in conf['plotter']: + modname = plotter['module'] + del plotter['module'] + + mod = __import__(modname) + mod.run(**plotter) |