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 <miles@gnu.org> wrote:
> Sam Roberts <vieuxtech@gmail.com> 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.

-- 
http://rrt.sc3d.org