Hi, I tried to get my Python scripts to work in Cocoon 2.1, and I can run simple scripts that do not import any Python modules.
But I can't import anything to that script. I tried everything, I set PYTHONPATH, set CATALINA_OPTS -Dpython.path, put .jython properties in my home, put registry in cocoons WEB-INF lib where jython.jar is, but nothing helped. Has anyone managed to do imports (I didn't try to import java libraries yet) from Python scripts in Cocoon2? I'm quite newbie in Jython but looking from sources it seems that current implementation of ScriptGenerator and/or BSF do not call any methods to set system properties for PythonInterpreter, but I'm not sure do understand it right. Anyway it would be nice to have all those Python modules availabe in Cocoon scripts. Thanks, Lassi Immonen --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>