No --add-package-cpath option
tp86 opened this issue · 2 comments
tp86 commented
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.
Is there any reason why there is no such option?
technomancy commented
No reason; just haven't gotten around to it yet. If you want to add it, that'd be great!