From 004615b1b2c5394bd57d7c93822d4abbe1887638 Mon Sep 17 00:00:00 2001 From: sammyette Date: Sun, 22 Dec 2024 01:17:07 -0400 Subject: [PATCH] fix: restore package.path setup --- lua.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua.go b/lua.go index 8b41deb..b0a584a 100644 --- a/lua.go +++ b/lua.go @@ -52,8 +52,7 @@ func luaInit() { */ // 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)); print(hilbish); print(hilbish.userDir.config)") + _, err := l.DoString("print(type(hilbish)); package.path = package.path .. " + requirePaths) if err != nil { fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.")