mirror of
https://github.com/beego/bee.git
synced 2024-11-22 15:10:54 +00:00
Fix to issue #270
This commit is contained in:
parent
f6a219fb3a
commit
ed67ef47e6
@ -651,7 +651,7 @@ func checkEnv(appname string) (apppath, packpath string, err error) {
|
|||||||
gsrcpath := path.Join(gpath, "src")
|
gsrcpath := path.Join(gpath, "src")
|
||||||
if strings.HasPrefix(currpath, gsrcpath) {
|
if strings.HasPrefix(currpath, gsrcpath) {
|
||||||
packpath = strings.Replace(currpath[len(gsrcpath)+1:], string(path.Separator), "/", -1)
|
packpath = strings.Replace(currpath[len(gsrcpath)+1:], string(path.Separator), "/", -1)
|
||||||
return currpath, currpath[len(gsrcpath)+1:], nil
|
return currpath, packpath, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user