0 votes
1 view
in Python by (7.9k points)

It seems they canceled in Python 3 all the easy way to quickly load a script by removing execfile()

Is there an obvious alternative I'm missing?

1 Answer

0 votes
by (15.5k points)

Use this exec(open("./filename").read()) instead of this execfile("./filename") 

...