fix #332 swagger generate bug on windows

This commit is contained in:
gloomyzerg
2017-03-10 17:49:58 +08:00
parent 932f16ba4e
commit 39cc0bc04e
2 changed files with 9 additions and 1 deletions

2
bee.go
View File

@ -160,7 +160,7 @@ func main() {
// Check if current directory is inside the GOPATH,
// if so parse the packages inside it.
if strings.Contains(currentpath, GetGOPATHs()[0]+"/src") && isGenerateDocs(cmd.Name(), args) {
if IsInGOPATH(currentpath) && isGenerateDocs(cmd.Name(), args) {
parsePackagesFromDir(currentpath)
}