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

Svante Kleist Svante.Kleist at NEMESIS.se
Mon Aug 30 09:14:19 EDT 1999


Dear Pythoneers,

Normally, I can retrieve the path and file of the executing Python script
from sys.argv[0]. But when running a script inside IDLE, this gives e.g.

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

Is there a way to get the path/file to the script I'm executing in IDLE?

Thanks. 

/ Svante Kleist - NEMESIS systemDesign, Stockholm




More information about the Python-list mailing list