1
0

move wordlists to data dir

This commit is contained in:
ThomasV
2014-09-13 09:58:11 +02:00
parent 5b84cbe9fb
commit 0606a30804
8 changed files with 16 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ import string
import ecdsa
import pbkdf2
import util
from util import print_error
from bitcoin import is_old_seed, is_new_seed
import version
@@ -46,7 +47,7 @@ class Mnemonic(object):
def __init__(self, lang='en'):
filename = filenames.get(lang[0:2], 'english.txt')
path = os.path.join(os.path.dirname(__file__), 'wordlist', filename)
path = os.path.join(util.appdata_dir(), 'wordlist', filename)
s = open(path,'r').read().strip()
s = unicodedata.normalize('NFKD', s.decode('utf8'))
lines = s.split('\n')