From b1846ac8ea6420d41925dacfc9bfa13e1660ed7c Mon Sep 17 00:00:00 2001 From: Alexey Karyabkin Date: Wed, 20 Jun 2018 21:10:27 +0400 Subject: [PATCH] small changes --- pybtc/hdwallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pybtc/hdwallet.py b/pybtc/hdwallet.py index 26de938..a6dcc48 100644 --- a/pybtc/hdwallet.py +++ b/pybtc/hdwallet.py @@ -369,7 +369,7 @@ def create_mnemonic(entropy, language='english'): return mnemonic[::-1] -def create_wordlist(language='english', wordlist_dir=BIP0039_DIR): +def create_wordlist(language='english', wordlist_dir=None): """ Creating the wordlist. @@ -377,6 +377,8 @@ def create_wordlist(language='english', wordlist_dir=BIP0039_DIR): :param str wordlist_dir: path to a file containing a list of words. :return: list of words. """ + if not wordlist_dir: + wordlist_dir = BIP0039_DIR f = None path = os.path.join(wordlist_dir, '.'.join((language, 'txt'))) assert os.path.exists(path)