public void execfile(java.io.InputStream s, String name) { setState(); Py.runCode(Py.compile_flags(s, name, "exec", cflags), locals, locals); }
/** * Execute a string of Python source in the local namespace * * @param s the string to execute */ public void exec(String s) { setState(); Py.exec(Py.compile_flags(s, "<string>", "exec", cflags), locals, locals); }