joesox / pswrdgen

Automatically exported from code.google.com/p/pswrdgen
0 stars 0 forks source link

Saving the custom word list files #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This feature is tricky because it is ideal to use just one file 
(pswrdgen.py) for the entire script.  The loadsettings() currently reads 
each line so I am unsure that saving the list will work correctly.

Original issue reported on code.google.com by joesox on 6 Oct 2007 at 5:15

GoogleCodeExporter commented 9 years ago
Storing the file list as separated values on one line, probably whitespace to
seperate them, or one filename per line until a marker, probably a blank line, 
seems
the easiest option.

Original comment by edd...@googlemail.com on 6 Oct 2007 at 2:28

GoogleCodeExporter commented 9 years ago
WORKAROUND:
1)Open to edit pswrdgen.py
2)Add an append line on line 267 in the 'loadsettings' method to add your 
custom 
word files on each startup
For Example:
266:try:
267:    self.WORDFILELISTS.append("C:\\Program 
Files\\pswrdgeniron\\romangods.txt")

Original comment by joesox on 7 Oct 2007 at 10:10

GoogleCodeExporter commented 9 years ago
Fixed now. Currently its saving the file list as a string with files separated 
by
'..' but the split token is easy to change. If there are no files in the list it
looks for a WordNet file to use.

It would now be easy to remove the WordNet dependence, if no file is found ask 
the
user for one.

For a more complete version look for WordNet (or other common word lists), if it
finds one or more ask which it should use or for a different file.

Original comment by edd...@googlemail.com on 20 Jan 2008 at 6:42