def sync(self): """Synchronise the config.""" with open_and_save(self.config_path) as config: config['config'] = self._config
def load(self): """Load the config.""" with open_and_save(self.config_path, save=False) as config: self._config = config['config']