RE: current script path via execfile?

2007-11-14 Thread Adam Pletcher
That works well, thank you! - Adam > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Gabriel Genellina > Sent: Wednesday, November 14, 2007 12:34 AM > To: python-list@python.org > Subject: Re: current script path via execfile

Re: current script path via execfile?

2007-11-13 Thread Gabriel Genellina
En Tue, 13 Nov 2007 13:42:04 -0300, Adam Pletcher <[EMAIL PROTECTED]> escribió: > I have an app with an embedded Python interpreter. In that interpreter, > I want to use "execfile" (or something similar) to execute a script from > disk. The script needs to somehow acquire the full path to itse

current script path via execfile?

2007-11-13 Thread Adam Pletcher
I have an app with an embedded Python interpreter. In that interpreter, I want to use "execfile" (or something similar) to execute a script from disk. The script needs to somehow acquire the full path to itself, but I can't work out how to do this. Since it's run with execfile in the embedded