jobfile.py 241 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
import yaml
import os

'''Helpers for handling loadleveller jobfiles.'''

class JobFile:
    def __init__(self, filename):
        with open(filename, 'r') as f:
            jobfile = yaml.safe_load(f)
10
11
        self.__dict__ = jobfile