<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial size=2>    I 
am writiing a script say "wabexec" in python</FONT></SPAN></DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial size=2>    I 
will then have softlinks from other softlinks like  ls, waf,hello, etc that 
are in the same directory and pointing to wabexec.</FONT></SPAN></DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial size=2>When some executes 
./waf or ./hello and wabexec gets invoked because of the softlink, how do I find 
out from within wabexec how it was invoked? was it throug waf or hello, 
etc.</FONT></SPAN></DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial size=2>both __file__ and 
sys.arg0[] seem to have wabexec not the name of the 
softlink.</FONT></SPAN></DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial size=2>Any 
ideas?</FONT></SPAN></DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=781421719-19042009><FONT face=Arial 
size=2>Sarvi</FONT></SPAN></DIV></BODY></HTML>