1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 20:20:49 +00:00

Fix to issue #270

This commit is contained in:
CodyGuo 2016-09-04 20:45:11 +08:00
parent f6a219fb3a
commit ed67ef47e6

View File

@ -651,7 +651,7 @@ func checkEnv(appname string) (apppath, packpath string, err error) {
gsrcpath := path.Join(gpath, "src")
if strings.HasPrefix(currpath, gsrcpath) {
packpath = strings.Replace(currpath[len(gsrcpath)+1:], string(path.Separator), "/", -1)
return currpath, currpath[len(gsrcpath)+1:], nil
return currpath, packpath, nil
}
}