[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: require cascade
- From: Peter Cawley <lua@...>
- Date: Mon, 8 Feb 2010 13:47:26 +0000
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.