laughedelic/LoadFileToRepl — pull request #27 by laughedelic (2014-08-22 22:32:08+00:00)
Title: Python 3 execfile error

I am currently learning python and installed this plugin for sublime3, but when I tried to run my code I was getting this error " NameError: name 'execfile' is not defined. "

I did some googling and saw that execfile is different in python 3 (the version I am learning is 3.4).

I looked at the file " LoadFileToRepl.sublime-settings " in " Load file to REPL.sublime-package " in my installed packages folder.

On line 27 it says , "python_load_command" : "execfile(\"%s\")"

I changed this line to , "python_load_command" : "exec(open(\"%s\").read())"

This seems to have worked, now I can load my python3 code into the sublimeREPL with this plugin with no errors.