getting the script name

Padraig Brady Padraig at Linux.ie
Wed Oct 9 11:28:17 CEST 2002


Henk wrote:
> Hi,
> 
> Is there any way to retrieve the name of the running script from
> within this running script?

import sys
sys.argv[0]




More information about the Python-list mailing list