The Python 3.3 equivalent of 'execfile'

Deaven Morris picture Deaven Morris · May 13, 2013 · Viewed 13.9k times · Source

I need to find out how to open my .py files after writing them in Notepad++. I find the interface more useful than the Python window.

In a tutorial I was following along with the guy uses

execfile(pathway)

but execfile does not work in 3.3.

Is there an equivalent statement in 3.x?

Answer