src/eric7/QScintilla/SpellChecker.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9618
f58ab8c5816b
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
12 import contextlib 12 import contextlib
13 import os 13 import os
14 14
15 from PyQt6.QtCore import QObject, QTimer 15 from PyQt6.QtCore import QObject, QTimer
16 16
17 from eric7 import Preferences, Utilities 17 from eric7 import Globals, Preferences
18 18
19 with contextlib.suppress(ImportError, AttributeError, OSError): 19 with contextlib.suppress(ImportError, AttributeError, OSError):
20 import enchant 20 import enchant
21 21
22 22
89 exception dictionary (boolean) 89 exception dictionary (boolean)
90 @return file name of the default user dictionary or the default user 90 @return file name of the default user dictionary or the default user
91 exception dictionary (string) 91 exception dictionary (string)
92 """ 92 """
93 if isException: 93 if isException:
94 return os.path.join(Utilities.getConfigDir(), "spelling", "pel.dic") 94 return os.path.join(Globals.getConfigDir(), "spelling", "pel.dic")
95 else: 95 else:
96 return os.path.join(Utilities.getConfigDir(), "spelling", "pwl.dic") 96 return os.path.join(Globals.getConfigDir(), "spelling", "pwl.dic")
97 97
98 @classmethod 98 @classmethod
99 def getUserDictionaryPath(cls, isException=False): 99 def getUserDictionaryPath(cls, isException=False):
100 """ 100 """
101 Class method to get the path name of a user dictionary file. 101 Class method to get the path name of a user dictionary file.

eric ide

mercurial