simulating #include in python

Peter Otten __peter__ at web.de
Tue Nov 15 09:37:59 EST 2005


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()?

Peter



More information about the Python-list mailing list