It seems they canceled in Python 3 all the easy way to quickly load a script by removing execfile()
execfile()
Is there an obvious alternative I\'m missing?
You could write your own function:
def xfile(afile, globalz=None, localz=None): with open(afile, "r") as fh: exec(fh.read(), globalz, localz)
If you really needed to...