(self)
| 98 | return str_io |
| 99 | |
| 100 | def load_config(self): |
| 101 | coordinator.profile = self.profile |
| 102 | conf_path = utils.get_config_path() |
| 103 | if not os.path.exists(conf_path): |
| 104 | self.config = self.yaml.load(self.default_config()) |
| 105 | else: |
| 106 | with open(conf_path) as f: |
| 107 | self.config = self.yaml.load(f) |
| 108 | self.load_modules_list() |
| 109 | |
| 110 | def save_config(self): |
| 111 | coordinator.profile = self.profile |