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

Daniel Fairhead madprof at uk2.net
Wed Mar 2 13:34:20 CET 2005

> > ===========> argv[0] <===============
> > 
> > contains the COMPLETE PATH to the binary.
> 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
> way:
> $ binary
> Then argv[0] contain only "binary".
> This is the case at least under any unix like.

On linux, /proc/self/exe is a symlink to the absolute location of the
executable. I don't know if this is cross platform ?



More information about the Bf-committers mailing list