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?
According to the documentation, instead of
execfile("./filename")
Use
exec(open("./filename").read())
See:
1.4m articles
1.4m replys
5 comments
57.0k users