simulating #include in python

Nick Craig-Wood nick at craig-wood.com
Tue Nov 15 11:30:17 EST 2005


Peter Otten <__peter__ at web.de> wrote:
>  Nick Craig-Wood wrote:
> 
> > I'd really like to be able to run an __import__ in the context of the file
> > thats running the include() but I haven't figured that out. 
> 
>  execfile()?

Yes thats exactly what I was looking for - thank you very much!

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list