1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 18:40:54 +00:00

bee fix the path.EvalSymlinks

This commit is contained in:
astaxie 2014-05-17 02:48:18 +08:00
parent 7f0e4f024c
commit a6f9c78aaa

View File

@ -310,7 +310,7 @@ func checkEnv(appname string) (apppath, packpath string, err error) {
haspath := false
wgopath := path.SplitList(gopath)
for _, wg := range wgopath {
wg = path.Join(wg, "src")
wg, _ = path.EvalSymlinks(path.Join(wg, "src"))
if path.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
haspath = true