lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Apr 5, 2014 at 11:16 PM, Paul Merrell <marbux@gmail.com> wrote:
> suggest is possible. But it might better be done as part of a module,
> in aid of keeping core Lua slim and trim. It's functionality not
> everyone will need.

Penlight's pl.app module has a require_here(), which adds the main
script's path to package.path.

For instance, I use it with ldoc so that ldoc.lua can load the rest of
the app from the ldoc folder in the same directory.