(self)
| 22 | self.load_config() |
| 23 | |
| 24 | def load_config(self): |
| 25 | print("Loading Config") |
| 26 | if os.path.exists(self.CONFIG_FILE): |
| 27 | with open(self.CONFIG_FILE, 'r') as f: |
| 28 | self.config = json.load(f) |
| 29 | else: |
| 30 | print("no config") |
| 31 | #we need to launch the settings window |
| 32 | |
| 33 | def save_config(self): |
| 34 | with open(self.CONFIG_FILE, 'w') as f: |