name of current program

Robey Holderith robey at slash_dev_slash_random.org
Wed Aug 18 22:28:39 CEST 2004


This should give you the script name.

sys.argv[0]

-Robey


On Wed, 18 Aug 2004 14:27:39 -0500, Josh Close wrote:

> This is a simple question, but I can't find the answer for some reason.
> 
> How do I get the name of the current script/program that is running?
> 
> -Josh




More information about the Python-list mailing list