mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
Fix to issue #270
This commit is contained in:
parent
f453885864
commit
f6a219fb3a
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user