From: Chris Cogdon Date: Thu, 1 Sep 2016 17:25:42 +0000 (-0700) Subject: Use locate_wordfile if no wordfile given. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=6265bb7300429772fd2aeed6469a6ce42c60510e;p=redacted-XKCD-password-generator.git Use locate_wordfile if no wordfile given. --- diff --git a/xkcdpass/xkcd_password.py b/xkcdpass/xkcd_password.py index 526ec22..32efa1c 100755 --- a/xkcdpass/xkcd_password.py +++ b/xkcdpass/xkcd_password.py @@ -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 = []