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:
2.1m questions
2.1m answers
60 comments
57.0k users