[Bf-committers] Re: [Bf-blender-cvs] CVS commit:
madprof at uk2.net
Wed Mar 2 13:34:20 CET 2005
> > ===========> argv <===============
> > contains the COMPLETE PATH to the binary.
> Actually, it is not so trivial, argv 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 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