RE: How can I get path/name of the softlink to my python script when executing it

2009-04-19 Thread Saravanan Shanmugham (sarvi)
From: Pascal Chambon [mailto:chambon.pas...@wanadoo.fr] Sent: Sunday, April 19, 2009 2:36 PM To: Saravanan Shanmugham (sarvi) Cc: python-list@python.org Subject: Re: How can I get path/name of the softlink to my python script when executing it Importance: High Hello I fear that in this

Re: How can I get path/name of the softlink to my python script when executing it

2009-04-19 Thread Pascal Chambon
Hello I fear that in this case the whole indirection operations on softlink occur only in the shell, and that the final command is only executed as if it were called directly on the real file... Have you tried typing "python ./waf", to see how the resolution occurs in that case ? Regards,

How can I get path/name of the softlink to my python script when executing it

2009-04-19 Thread Saravanan Shanmugham (sarvi)
Hi, I am writiing a script say "wabexec" in python I will then have softlinks from other softlinks like ls, waf,hello, etc that are in the same directory and pointing to wabexec. When some executes ./waf or ./hello and wabexec gets invoked because of the softlink, how do I find out fro