Skip to content

Commit cc6dbe1

Browse files
committed
wip
1 parent 54290a2 commit cc6dbe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pub/functora-hakyll/bip39/24th-word-calculator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self, language):
1010

1111
counter = 0
1212

13-
with open('%s.txt' % (self._get_directory(), language), 'r') as file:
13+
with open('%s/%s.txt' % (self._get_directory(), language), 'r') as file:
1414
for w in file.readlines():
1515
word = w.strip() if sys.version < '3' else w.strip()
1616
self.worddict[word] = counter
@@ -22,7 +22,7 @@ def __init__(self, language):
2222

2323
@classmethod
2424
def _get_directory(cls):
25-
return os.path.join(os.path.dirname(__file__), 'wordlist')
25+
return os.path.dirname(__file__)
2626

2727
def _check_size(self, phrase):
2828
self.size = len(phrase) + 1

0 commit comments

Comments
 (0)