MCPcopy Create free account
hub / github.com/EasyIME/PIME / run

Method run

python/cinbase/__init__.py:3279–3292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
3295class LoadCinTable(threading.Thread):

Callers

nothing calls this directly

Calls 6

phraseClass · 0.90
getConfigDirMethod · 0.45
getDataDirMethod · 0.45
__del__Method · 0.45
findFileMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected