def _update_break_rule(self, rule_id):
    self.settings.set('Settings', 'BreakRule', rule_id)
    with open('{}/tms/settings.ini'.format(os.getcwd()), 'w') as configfile:
        self.settings.write(configfile)
    logging.info('Break rule changed to rule {}'.format(self.settings.get('Settings', 'BreakRule')))
def _update_break_rule(self, rule_id):
    self.settings.set('Settings', 'BreakRule', rule_id)
    with open('{}/tms/settings.ini'.format(os.getcwd()), 'w') as configfile:
        self.settings.write(configfile)
    logging.info('Break rule changed to rule {}'.format(self.settings.get('Settings', 'BreakRule')))