1
0
mirror of https://github.com/beego/bee.git synced 2024-11-23 22:10:54 +00:00
This commit is contained in:
astaxie 2013-06-25 23:38:54 +08:00
parent bd3ff53f19
commit 67428cafde

View File

@ -54,7 +54,7 @@ func createapp(cmd *Command, args []string) {
if len(wgopath) >= 1 { if len(wgopath) >= 1 {
for _, wg := range wgopath { for _, wg := range wgopath {
wg = wg + `\src` wg = wg + `\src`
if crupath == wg { if strings.HasPrefix(crupath, wg) {
haspath = true haspath = true
break break
} }
@ -64,7 +64,7 @@ func createapp(cmd *Command, args []string) {
lgopath := strings.Split(gopath, ":") lgopath := strings.Split(gopath, ":")
if len(lgopath) >= 1 { if len(lgopath) >= 1 {
for _, wg := range lgopath { for _, wg := range lgopath {
if crupath == path.Join(wg, "src") { if strings.HasPrefix(crupath, path.Join(wg, "src")) {
haspath = true haspath = true
break break
} }