mirror of
https://github.com/beego/bee.git
synced 2024-11-24 03:20:55 +00:00
fix #6
This commit is contained in:
parent
bd3ff53f19
commit
67428cafde
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user