Skip to content

Commit

Permalink
Allow use of own wordlist
Browse files Browse the repository at this point in the history
  • Loading branch information
x89 committed Sep 30, 2016
1 parent 92028f2 commit 4e785dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shreddit.py
Expand Up @@ -87,7 +87,7 @@ def get_sentence():
except ImportError:
# Module unavailable, use the default phrase
pass
os_wordlist = '/usr/share/dict/words'
os_wordlist = config.get('wordlist', '/usr/share/dict/words')
if os.name == 'posix' and os.path.isfile(os_wordlist):
# Generate a random string of words from our system's dictionary
fh = open(os_wordlist)
Expand Down
3 changes: 3 additions & 0 deletions shreddit.yml.example
Expand Up @@ -72,4 +72,7 @@ replacement_format: random
# See: https://docs.python.org/3/library/logging.html#logging-levels
debug: DEBUG

# Define your own wordlist to use as substitution text
wordlist: False

# vim: syntax=yaml ts=2

0 comments on commit 4e785dc

Please sign in to comment.