Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)