I just ran into the same problem - obviously, python.load () is simply loading the script from the location, as if it were a group of commands.
I'm not sure if it is somehow packaged or preceded by some kind of code template, but it seems like that. And if you have to catch errors using rPython, then this will probably be done in the try block ... (given the current code on GitHub , at least).
, execfile(), :
python.exec("execfile('myscript.py')")
, ,
python.exec("import myscript")
, , , , , , .
(, - , .)