read the setting from file Returns: dict: the data of setting file
(self)
| 85 | self.save_setting({}) |
| 86 | |
| 87 | def read_setting(self) -> dict: |
| 88 | """read the setting from file |
| 89 | |
| 90 | Returns: |
| 91 | dict: the data of setting file |
| 92 | """ |
| 93 | with open(self.setting_file, 'r', encoding='utf-8') as f: |
| 94 | data = json.load(f) |
| 95 | return data |
| 96 | |
| 97 | def save_setting(self, value: dict) -> None: |
| 98 | """update the plugin setting""" |