1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-11 20:50:29 +08:00

try to refactor, not finished yet

This commit is contained in:
Wang Bin
2015-03-20 18:38:08 +08:00
parent 16929faf57
commit d257da40a7
3 changed files with 126 additions and 2 deletions

View File

@@ -18,11 +18,11 @@ func DictPath(dictFileName string) (string, error) {
return dictFileName, nil
}
var dictFilePath string
pwd, err := os.Getwd()
cwd, err := os.Getwd()
if err != nil {
return dictFilePath, err
}
dictFilePath = filepath.Clean(filepath.Join(pwd, dictFileName))
dictFilePath = filepath.Clean(filepath.Join(cwd, dictFileName))
return dictFilePath, nil
}