From: Charlie G. <cha...@gm...> - 2007-12-18 09:43:46
|
On Dec 17, 2007 9:50 PM, Nikhil Gahlot <gah...@gm...> wrote: > I am working in a project where I am required to run python > files/methods. I am using Jython 2.2.1. The set of python files I have to > work with is of compiled form (.pyo). One way is to use PythonInterpreter > object but all the methods that I came across take namespace of source file > (.py). I went through the whole API but I did not find any solution. > Is there a way to execute .pyo file from jython or is it a prerequisite > that file must be a source file? It either has to be a source file, or a .class file that Jython created. .pyo are compiled files for CPython, so they won't work in Jython. Charlie |