[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/src language.c

Peponas Mathieu m.peponas at gmail.com
Wed Mar 2 08:52:28 CET 2005

On Wed, 2 Mar 2005 01:33:12 +0100 (CET), Alexander Ewering
<blender at instinctive.de> wrote:

> Even though it's *so* simple to solve.
> ===========> argv[0] <===============
> contains the COMPLETE PATH to the binary.
> Is there anything more to say? :)

Actually, it is not so trivial, argv[0] contain the absolute Path only
if you launch the binary with the absolute path in your shell.
Otherwise, if the binary is somewhere in $PATH and you launch it this
$ binary

Then argv[0] contain only "binary".
This is the case at least under any unix like.

More information about the Bf-committers mailing list