1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 18:40:54 +00:00

windows下路径问题

This commit is contained in:
qida 2017-04-18 14:35:59 +08:00
parent a353b6d69a
commit 3b0dd10302

View File

@ -967,7 +967,7 @@ func getPackagePath(curpath string) (packpath string) {
for _, wg := range wgopath {
wg, _ = filepath.EvalSymlinks(path.Join(wg, "src"))
if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
if strings.HasPrefix(strings.ToLower(strings.Replace(curpath, "/", "\\", -1)), strings.ToLower(wg)) {
haspath = true
appsrcpath = wg
break