How do I...

Eric Hopper eric.hopper at ebenx.com
Thu Mar 9 19:36:37 EST 2000


Brett Tribble wrote:

> How do I find the name of the script that is currently running from within
> the script?
>
> I.E. If I'm running C:\python\myscript.py  how do I determine this?
>
> Brett

import sys
print sys.argv[0]





More information about the Python-list mailing list