mirror of
https://github.com/beego/bee.git
synced 2024-12-25 04:30:50 +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 {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user