(self)
| 68 | return os.path.join(data_dir, 'appdata.json') |
| 69 | |
| 70 | def _load_data(self): |
| 71 | if not self._data: |
| 72 | datafile = self._get_data_file() |
| 73 | if os.path.exists(datafile): |
| 74 | with open(self._get_data_file(), 'r') as f: |
| 75 | self._data = json.load(f) |
| 76 | |
| 77 | def __getitem__(self, key): |
| 78 | self._load_data() |
no test coverage detected