[Pythonmac-SIG] Stupid question

Andrea Tomadin tom.and at tiscalinet.it
Mon May 21 13:24:29 CEST 2007


Calder Coalson wrote:

> All  I want to do is split up my file into multiple files,

Why not a simple execfile("otherprogram.py")?
All the code in otherprogram.py is executed as if it was typed into  
the main program.
No namespace issues or import problems. (Not OOP either, in fact!)

Hope this helps,
Andrea


More information about the Pythonmac-SIG mailing list