Don't set a custom dictionary path for now as Enchant 2.2.x is not compatible with calls to set_param. #326

This commit is contained in:
Manuel Cortez 2020-05-01 13:14:27 -05:00
parent 92564d4075
commit 59bd2842c4

View File

@ -23,10 +23,10 @@ class spellChecker(object):
super(spellChecker, self).__init__()
# Set Dictionary path if not set in a previous call to this method.
# Dictionary path will be located in user config, see https://github.com/manuelcortez/twblue/issues/208
dict_path = enchant.get_param("enchant.myspell.dictionary.path")
if dict_path == None:
enchant.set_param("enchant.myspell.dictionary.path", os.path.join(paths.config_path(), "dicts"))
log.debug("Dictionary path set to %s" % (os.path.join(paths.config_path(), "dicts"),))
# dict_path = enchant.get_param("enchant.myspell.dictionary.path")
# if dict_path == None:
# enchant.set_param("enchant.myspell.dictionary.path", os.path.join(paths.config_path(), "dicts"))
# log.debug("Dictionary path set to %s" % (os.path.join(paths.config_path(), "dicts"),))
log.debug("Creating the SpellChecker object. Dictionary: %s" % (dictionary,))
self.active = True
try: