I have Jython embedded in my application. I have some users who want to not pass the raw text of a python script around to some other users, but rather would prefer to only give them the $py.class file generated by Jython when a py file is loaded. Essentially they want an execfile() equivalent that can accept a $py.class file instead of a .py file.


The way I have things setup I have an opportunity to implement such functionality either in python or in my java code, so I was wondering the best way to go about make this happen. It seems like I just need access to the methods that load the .class file and convert them to PyCode so I can then pass that onto Py.runCode() or something – any pointers to the best way to start attacking this problem?


Sometimes these scripts are just that, simple scripts – not class or function definitions.


Joey Jarosz

Senior Architect

Chip Planning Solutions

Cadence Design Systems, Inc.
(408) 914-6269

Need some IP? Check out www.chipestimate.com