lua-users home
lua-l archive

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


On Mon, Feb 8, 2010 at 1:44 PM, steve donovan <steve.j.donovan@gmail.com> wrote:
> but this requires that the module
> knows exactly where it is loaded from; you can usually get this from
> arg[0].

Alternatively, if you have the debug library, debug.getinfo(1,
"S").source:sub(2, -1) is usually suitable for working out where you
are.