|
Lua simply appends the module name to each path and then tries to openOn Mon, Feb 8, 2010 at 3:25 PM, Joe Andresen <joe.andresen@gmail.com> wrote:
> is it possible to require all give modules in a path without knowing their
> names?
>
> Will this work with subdirectories of that path as well? or does that have
> to be included in package.path?
the file. It has no concept of a directory so it cannot iterate over
the files in a directory for modules to load.
On the other hand, you can construct LUA_INIT so that it requires all
modules in a directory with some fancy bash code (an exercise left to
the reader).
--
- Patrick Donnelly