1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 20:10:55 +00:00

Fix to issue #270

This commit is contained in:
CodyGuo 2016-09-04 13:53:45 +08:00
parent f453885864
commit f6a219fb3a

View File

@ -650,6 +650,7 @@ func checkEnv(appname string) (apppath, packpath string, err error) {
for _, gpath := range gps {
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
}
}