nmindex support python

This commit is contained in:
xushiwei
2024-05-09 12:03:21 +08:00
parent d4dd0c00ff
commit 329f65a1ad
3 changed files with 21 additions and 13 deletions

View File

@@ -64,6 +64,7 @@ func makeIndex() {
usrLib(true),
stdLib("LLGO_STDROOT"),
stdLib("LLGO_USRROOT"),
pythonLib(),
}
err := b.Index(libDirs, idxDir, func(path string) {
fmt.Println("==>", path)
@@ -103,6 +104,10 @@ func usrLib(local bool) string {
return "/usr/lib"
}
func pythonLib() string {
return os.Getenv("LLGO_PYTHON_ROOT")
}
func check(err error) {
if err != nil {
panic(err)