Rosettea/Hilbish

Requiring lua modules

CapedBojji opened this issue · 2 comments

is there a way to require other lua files and files from lua rocks

you can add the default lua package paths:
package.path = package.path .. ';/usr/share/lua/5.4/?.lua;/usr/share/lua/5.4/?/init.lua;/usr/lib64/lua/5.4/?.lua;/usr/lib64/lua/5.4/?/init.lua;'

and then require luarocks.loader, and now you can require luarocks modules.
maybe i can add the lua package.path for the next release.

yeah i think that should be added by default thanks