Use locate_wordfile if no wordfile given.
authorChris Cogdon <redacted>
Thu, 1 Sep 2016 17:25:42 +0000 (10:25 -0700)
committerChris Cogdon <redacted>
Thu, 1 Sep 2016 17:25:42 +0000 (10:25 -0700)
xkcdpass/xkcd_password.py

index 526ec2240839b994eb791ca041017dc6f08a8831..32efa1ce43249d96a41d62a1db38e8d4ba9d9da8 100755 (executable)
@@ -104,6 +104,9 @@ def generate_wordlist(wordfile=None,
     Generate a word list from either a kwarg wordfile, or a system default
     valid_chars is a regular expression match condition (default - all chars)
     """
+                      
+    if wordfile is None:
+        wordfile = locate_wordfile()
 
     words = []
 
git clone https://git.99rst.org/PROJECT