(self)
| 3277 | self.PhraseData = PhraseData |
| 3278 | |
| 3279 | def run(self): |
| 3280 | self.PhraseData.loading = True |
| 3281 | cfg = self.cbTS.cfg |
| 3282 | datadirs = (cfg.getConfigDir(), cfg.getDataDir()) |
| 3283 | |
| 3284 | if hasattr(self.PhraseData.phrase, '__del__'): |
| 3285 | self.PhraseData.phrase.__del__() |
| 3286 | |
| 3287 | self.PhraseData.phrase = None |
| 3288 | |
| 3289 | phrasePath = cfg.findFile(datadirs, "phrase.json") |
| 3290 | with io.open(phrasePath, 'r', encoding='utf8') as fs: |
| 3291 | self.PhraseData.phrase = phrase(fs) |
| 3292 | self.PhraseData.loading = False |
| 3293 | |
| 3294 | |
| 3295 | class LoadCinTable(threading.Thread): |
nothing calls this directly
no test coverage detected