IDLE: What to use instead of sys.argv[0] ?

Svante Kleist Svante.Kleist at NEMESIS.se
Sat Aug 28 04:00:05 EDT 1999


Dear Pythoneers,

>From within a Python script executed in IDLE, how can I get
its path/file? sys.argv[0] gives me this:

	E:\local\Python\Tools\idle\idle.pyw

Thanks for any tip.

/ Svante Kleist - NEMESIS systemDesign, Stockholm




More information about the Python-list mailing list