From b6d5c9be6319d427cfc2761af7f8fac8f48ab407 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 15 Aug 2019 09:16:55 -0500 Subject: [PATCH] Spell checker module should work properly. Fixes #296 --- src/extra/SpellChecker/spellchecker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extra/SpellChecker/spellchecker.py b/src/extra/SpellChecker/spellchecker.py index b9d1110d..373f761b 100644 --- a/src/extra/SpellChecker/spellchecker.py +++ b/src/extra/SpellChecker/spellchecker.py @@ -32,10 +32,10 @@ class spellChecker(object): try: if config.app["app-settings"]["language"] == "system": log.debug("Using the system language") - self.dict = enchant.DictWithPWL(languageHandler.curLang[:2], paths.config_path("wordlist.dict")) + self.dict = enchant.DictWithPWL(languageHandler.curLang[:2], os.path.join(paths.config_path(), "wordlist.dict")) else: log.debug("Using language: %s" % (languageHandler.getLanguage(),)) - self.dict = enchant.DictWithPWL(languageHandler.getLanguage()[:2], paths.config_path("wordlist.dict")) + self.dict = enchant.DictWithPWL(languageHandler.getLanguage()[:2], os.path.join(paths.config_path(), "wordlist.dict")) except DictNotFoundError: log.exception("Dictionary for language %s not found." % (dictionary,)) wx_ui.dict_not_found_error()