Changing sys.argv[-1]

Adrian Phillips (tandem@freeze.oslo.dnmi.no)
Wed, 16 Mar 1994 14:05:31 +0000

Hope you're not to sick of me yet.

Right, what I would like to do is change the python process's argv so that a ps
shows the <script name> not python <scriptname>. Now sys.argv[0] contains the
script name, and it is possible to do this, perl does using $0, but I think it
is OS dependent.

thanks again,

Adrian

-- 
---------------------
 ========================================================================
=   	    	    	    	    	    	    	    	    	 =
= Adrian Phillips at The Norwegian Meteorological Institute   	    	 =
=    	    	    	    	    	    	    	    	    	 =
= BUT any thoughts in this are purely my own and have nothing to do with =
= this establishment, thankfully.   	    	    	    	    	 =
=   	    	    	    	    	    	    	    	    	 =
= Internet: daap@typhoon.oslo.dnmi.no  	    	    	    	    	 =
= Phone: 47 22 96 32 09	    	    	    	    	    	    	 =
= Fax: 47 22 96 30 50	    	    	    	    	    	    	 =
=   	    	    	    	    	    	    	    	     	 =
 ========================================================================