Search code examples
luatorchluarocks

loading/require luarocks installed using --local arguement


I am trying to load a lua module after installing it as 'luarocks install --local tds'.

But I am not able to load the package when I do require 'tds'. Is there a path which I would have to add to search path to load this module?


Solution

  • If tds is nil after require 'tds', then do local tds = require 'tds'.