|
From: Davide M. <da...@ds...> - 2001-08-28 14:57:14
|
Hi, I want call a jython script within a servlet.
But I want that the classes used in the python
script are accessible throught a classloader other
than the sistem classloader.
I construct the classloader appropriately, then
I make
PySystemState.initialize();
for (int i = 0; i < _paths.length; i++)
{
System.out.println("Aggiungo il seguente path per trovare le
classi: " + _paths[i]);
PySystemState.add_classdir(_paths[i]);
}
jpState.initialize();
//org.python.core.PySystemState.
//jpState.initialize();
PythonInterpreter interp = new PythonInterpreter(null,
jpState);
|