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