mirror of https://github.com/Hilbis/Hilbish
fix: restore package.path setup
parent
c3025b1417
commit
004615b1b2
3
lua.go
3
lua.go
|
@ -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.")
|
||||||
|
|
Loading…
Reference in New Issue