Conversion: execfile --> exec

Long Yang long.0.yang at gmail.com
Mon Jun 13 09:24:38 EDT 2016


The python 2.x command is as following:
---------------------------
info = {}
execfile(join('chaco', '__init__.py'), info)
------------------------------

But execfile has been removed in python 3.x.
So my problem is how to convert the above to a 3.x based command?

thanks very much



More information about the Python-list mailing list