lua-users home
lua-l archive

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

On Fri, Nov 6, 2009 at 4:59 AM, zweifel <> wrote:
> Second, Is there anyway of knowing inside a lua script, automatically the
> name of the script itself.

Have a look at the value of arg[0], it is exactly what you need.  You
may have to strip off the directory part.