diff --git a/dictionary.py b/dictionary.py index a16a8cc..6243a68 100644 --- a/dictionary.py +++ b/dictionary.py @@ -11,7 +11,7 @@ ALTERNATE = spellchecker.WordFrequency() package_root = pathlib.Path(spellchecker.__file__).parent english = package_root / "resources" / "en.json.gz" -extra_words = pathlib.Path(__file__, "..", "extra_words.txt") +extra_words = pathlib.Path(__file__).parent / "extra_words.txt" def do_operation(bound_method, *args, **kwargs):