How do I...

Brett Tribble btribble at blueshiftinc.com
Fri Mar 10 18:28:29 EST 2000


"Jeff Pinyan" wrote
> Read the sys.py docs (python -c 'import sys; print sys.__doc__').
>
>   import sys
>   print "You're running", sys.argv[0]

Thank you! I don't know which is cooler, the answer, or finding out about
__doc__!

Brett







More information about the Python-list mailing list