1
0
mirror of https://github.com/beego/bee.git synced 2024-12-25 04:30:50 +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 {
for _, wg := range wgopath {
wg = wg + `\src`
if crupath == wg {
if strings.HasPrefix(crupath, wg) {
haspath = true
break
}
@ -64,7 +64,7 @@ func createapp(cmd *Command, args []string) {
lgopath := strings.Split(gopath, ":")
if len(lgopath) >= 1 {
for _, wg := range lgopath {
if crupath == path.Join(wg, "src") {
if strings.HasPrefix(crupath, path.Join(wg, "src")) {
haspath = true
break
}