lua-users home
lua-l archive

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

On 27 February 2011 00:46, Miles Bader <> wrote:
> Sam Roberts <> writes:
> [Looking at argv[0] and possibly searching getenv("PATH") _often_ works,
> but is not guaranteed.]

While there's still no guarantee, gnulib gives you a best-effort API
for this, get_full_program_name, which lets you take advantage of
future improvements for free.