On Jul 25, 2007, at 10:50 AM, Nicolas Cannasse wrote:


It's not solved yet, since it seems that /proc/self/exe is not mounted by default and that the "_" environment variable is not working either.

Maybe adding a PATH search for "_" would work better ?


Hmmm, so maybe combining a getprogname() call and doing a search of PATH for that value. That would be better than most solutions. It's not a 100% accurate way to determine the executing binary but I can't imagine under what conditions it could go wrong, unless perhaps you had a second version of neko installed.

--Dan--


--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to