|
|
@ -87,7 +87,7 @@ try:
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
# Module unavailable, use the default phrase
|
|
|
|
# Module unavailable, use the default phrase
|
|
|
|
pass
|
|
|
|
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):
|
|
|
|
if os.name == 'posix' and os.path.isfile(os_wordlist):
|
|
|
|
# Generate a random string of words from our system's dictionary
|
|
|
|
# Generate a random string of words from our system's dictionary
|
|
|
|
fh = open(os_wordlist)
|
|
|
|
fh = open(os_wordlist)
|
|
|
|