diff --git a/cool_domain/constants.py b/cool_domain/constants.py index 911aa3f..441ec7a 100644 --- a/cool_domain/constants.py +++ b/cool_domain/constants.py @@ -1,6 +1,6 @@ from cool_domain.word_list import WordList LANGS: dict[str, WordList] = { - "english": WordList("english", "english/words_alpha.txt"), - "french": WordList("french", "french/francais.txt"), + "english": WordList("english", "english.txt"), + "french": WordList("french", "french.txt"), } diff --git a/cool_domain/english.txt b/cool_domain/english.txt new file mode 120000 index 0000000..87032f7 --- /dev/null +++ b/cool_domain/english.txt @@ -0,0 +1 @@ +../english/words_alpha.txt \ No newline at end of file diff --git a/cool_domain/french.txt b/cool_domain/french.txt new file mode 120000 index 0000000..badc059 --- /dev/null +++ b/cool_domain/french.txt @@ -0,0 +1 @@ +../french/francais.txt \ No newline at end of file diff --git a/cool_domain/word_list.py b/cool_domain/word_list.py index b766434..39702b3 100644 --- a/cool_domain/word_list.py +++ b/cool_domain/word_list.py @@ -11,7 +11,7 @@ class WordList: def __init__(self, name: str, path: str) -> None: self.logger: logging.Logger = logging.getLogger(self.__class__.__name__) self.__name = name - self.__filepath = pathlib.Path(__file__).parent / ".." / path + self.__filepath = pathlib.Path(__file__).parent / path self.words: list[str] = [] def open(self) -> None: