[Baypiggies] Can you get the filename which is being execfile()'d from within the file being execfiled?
doug at apley.com
Thu Dec 13 02:29:29 CET 2007
I think you can get that with:
Doug at Apley.com
On Dec 12, 2007, at 6:10 PM, William Deegan wrote:
> If I execfile('abc.py')
> And abc.py calls function tellme().
> Is there a global or a way to pass to tellme() the filename being
> Let me know if this is not clear.
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies