fix: restore package.path setup

midnight-edition
sammyette 2024-12-22 01:17:07 -04:00
parent c3025b1417
commit 004615b1b2
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 2 deletions

3
lua.go
View File

@ -52,8 +52,7 @@ func luaInit() {
*/ */
// Add more paths that Lua can require from // Add more paths that Lua can require from
//_, err := l.DoString("print(type(hilbish)); package.path = package.path .. " + requirePaths) _, err := l.DoString("print(type(hilbish)); package.path = package.path .. " + requirePaths)
_, err := l.DoString("print(type(hilbish)); print(hilbish); print(hilbish.userDir.config)")
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.") fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.")