fix wordlist paths

This commit is contained in:
Ethan Buchman 2018-01-02 16:39:43 -05:00
parent 793d7717dc
commit 156416fe27
3 changed files with 45 additions and 43 deletions

View File

@ -15,7 +15,7 @@ check: check_tools
wordlist:
# Generating wordlist.go...
go-bindata -ignore ".*\.go" -o keys/wordlist/wordlist.go -pkg "wordlist" keys/wordlist/...
go-bindata -ignore ".*\.go" -o keys/words/wordlist/wordlist.go -pkg "wordlist" keys/words/wordlist/...
build: wordlist
# Nothing else to build!

View File

@ -61,7 +61,7 @@ func MustLoadCodec(bank string) *WordCodec {
// loadBank opens a wordlist file and returns all words inside
func loadBank(bank string) ([]string, error) {
filename := "keys/wordlist/" + bank + ".txt"
filename := "keys/words/wordlist/" + bank + ".txt"
words, err := wordlist.Asset(filename)
if err != nil {
return nil, err

File diff suppressed because one or more lines are too long