I want to use luafilesystem in fennel script. luafilesystem is a C-based Lua module, so only lfs.so file is available. I have installed it in custom location via luarocks and it's not available by default for require.
While I can set LUA_CPATH variable or set package.cpath from code, there should also be an option to add to package.cpath from command-line, similar to the way package.path can be manipulated with --add-package-path option.
I want to use
luafilesystem
in fennel script.luafilesystem
is a C-based Lua module, so only lfs.so file is available. I have installed it in custom location via luarocks and it's not available by default forrequire
.While I can set
LUA_CPATH
variable or setpackage.cpath
from code, there should also be an option to add topackage.cpath
from command-line, similar to the waypackage.path
can be manipulated with--add-package-path
option.Is there any reason why there is no such option?