Hi,
I believe every time you call execfile, python will look on the hard drive for the filename. I think Python optimizes this a little by compiling the script into a .pyc file, and using that on subsequent calls. I'm not sure if Python stores the code in memory for further optimizations.
There really is no harm in doing this, I just see it as a bad workaround to simply importing the module.
|