Name of the Script

stadel stadel at excite.com
Sun Mar 4 22:28:32 EST 2001


Thanks alex .  Now that you say that it seems rather obvious.  I feel
like a dolt :P

Thanks again
Stadel



In article <NJCo6.6720$qv3.2834377 at nnrp5-w.sbc.net>, "Alex Shindich"
<alex at shindich.com> wrote:

> try the following:
> 
> import sys print sys.argv[0]
> ....
> The first argument in the argument list is the name of the script that
> got invoked.
> 
> I hope this helps.
> 
> Regards,
> 
> Alex Shindich visit http://www.shindich.com/sources
> "stadel" <stadel at excite.com> wrote in message
> news:20010304.185354.2114937732.8277 at localhost.localdomain...
>> What is the method for returning the file name of the running script?
>>
>> Thanks in advance. Stadel
>>
> 
>



More information about the Python-list mailing list