From: Edmund L. <el...@in...> - 2002-09-13 06:35:27
|
On 09/12/2002 11:39:13 PM Tavis Rudd wrote: >Unfortunately not. I've run into this before. Making it possible would >require huge changes. In this case, I couldn't take no for an answer, and couldn't sleep until I had a solution. Here it is: import sys absoluteFilename = sys._getframe().f_code.co_filename I don't know if using deep magic like this is a Good Thing(tm)*, but it works all the time. ...Edmund. * must be trademarked by Martha Stewart by now |