windows下路径问题

This commit is contained in:
qida 2017-04-18 14:35:59 +08:00
parent a353b6d69a
commit 3b0dd10302
1 changed files with 1 additions and 1 deletions

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