fix: use symlink for txt files
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../english/words_alpha.txt
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../french/francais.txt
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user