progamPath bug fix

This commit is contained in:
Rob1103 2022-11-12 17:53:40 +01:00
parent b9bcfb9710
commit 4fed79c2d8

View file

@ -275,7 +275,13 @@ func extractPrototype(sourcesFiltered []string, data *u.Data) error {
func gatherSourceFileSymbols(data *u.Data, programPath string) error {
tmp := strings.Split(programPath, "/")
folderPath := strings.Join(tmp[:len(tmp)-1], "/")
i := 2
for ; i < len(tmp); i++ {
if tmp[len(tmp)-i] == "apps" {
break
}
}
folderPath := strings.Join(tmp[:len(tmp)-i+2], "/")
files, err := findSourcesFiles(folderPath)
if err != nil {