def __init__(self, settings):
    self.settings = settings
    self.rules_record = configparser.ConfigParser()
    self.rules_record.read('{}/tms/breakrules.ini'.format(os.getcwd()))
    self.rules = {}
    for rule_id in self.rules_record.sections():
        self.rules[rule_id] = self.rules_record.get(rule_id, 'Description')
def __init__(self, settings):
    self.settings = settings
    self.rules_record = configparser.ConfigParser()
    self.rules_record.read('{}/tms/breakrules.ini'.format(os.getcwd()))
    self.rules = {}
    for rule_id in self.rules_record.sections():
        self.rules[rule_id] = self.rules_record.get(rule_id, 'Description')