fix wordlist paths
This commit is contained in:
parent
793d7717dc
commit
156416fe27
2
Makefile
2
Makefile
|
@ -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!
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue