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:
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