def initializeAspellDirectory(self): spellingDir = getApplicationModel().getUserProfile().getDirectory(u"spellcheck") #$NON-NLS-1$ aspellDir = os.path.join(spellingDir, u"aspell") #$NON-NLS-1$ keyFilePath = os.path.join(aspellDir, u"data", u"ASCII.dat") #$NON-NLS-2$ #$NON-NLS-1$ if not os.path.isfile(keyFilePath): aspellBaseZip = getApplicationModel().getResourceRegistry().getResourcePath(u"spellcheck/aspell/aspell-base.zip") #$NON-NLS-1$ unpackZip(aspellBaseZip, aspellDir)
def initializeAspellDirectory(self): spellingDir = getApplicationModel().getUserProfile().getDirectory( u"spellcheck") #$NON-NLS-1$ aspellDir = os.path.join(spellingDir, u"aspell") #$NON-NLS-1$ keyFilePath = os.path.join(aspellDir, u"data", u"ASCII.dat") #$NON-NLS-2$ #$NON-NLS-1$ if not os.path.isfile(keyFilePath): aspellBaseZip = getApplicationModel().getResourceRegistry( ).getResourcePath( u"spellcheck/aspell/aspell-base.zip") #$NON-NLS-1$ unpackZip(aspellBaseZip, aspellDir)
def processDictionaryFile(self, dictionaryFilePath): spellingDir = getApplicationModel().getUserProfile().getDirectory(u"spellcheck") #$NON-NLS-1$ aspellDir = os.path.join(spellingDir, u"aspell") #$NON-NLS-1$ unpackZip(dictionaryFilePath, aspellDir)
def processDictionaryFile(self, dictionaryFilePath): spellingDir = getApplicationModel().getUserProfile().getDirectory( u"spellcheck") #$NON-NLS-1$ aspellDir = os.path.join(spellingDir, u"aspell") #$NON-NLS-1$ unpackZip(dictionaryFilePath, aspellDir)