From 2c96fed68ab7dcb08fa0c92a88a1bdfa87244cdc Mon Sep 17 00:00:00 2001 From: gotoeasy Date: Tue, 10 Sep 2024 08:55:13 +0800 Subject: [PATCH] v0.17.1 --- glc/ldb/tokenizer/tokenizer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glc/ldb/tokenizer/tokenizer.go b/glc/ldb/tokenizer/tokenizer.go index ec47f7e..96fc11a 100644 --- a/glc/ldb/tokenizer/tokenizer.go +++ b/glc/ldb/tokenizer/tokenizer.go @@ -6,6 +6,7 @@ package tokenizer import ( "embed" "glc/conf" + "path/filepath" "github.com/gotoeasy/glang/cmn" ) @@ -25,7 +26,7 @@ func init() { if !cmn.IsExistFile(defaultDictFile) { bts, err := dictionary.ReadFile("dict.zip") if err == nil { - cmn.UnZipBytes(bts, defaultDictFile) + cmn.UnZipBytes(bts, filepath.Dir(defaultDictFile)) } }