name of current program

Phil Frost indigo at
Wed Aug 18 21:30:00 CEST 2004

sys.argv[0] will yield the command that was used to invoke the program.

On Wed, Aug 18, 2004 at 02:27:39PM -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?

More information about the Python-list mailing list