test.py had this code, it'd work perfectly:
#Import and use the Java Object inside the jar
from com import HelloFromJar
h = HelloFromJar()
h.sayHello()
#Import the other python module inside the jar
from pleaseWork import echo
echo("FrostWire")
NOTE: It's very important that you
ath.insert(0,new PyString(jarFile));
//We pass the PythonInterpreter the modified
PySystemState
PythonInterpreter i = new PythonInterpreter(null,
pySys);
i.exec(pythonScriptName);
On Dec 3, 6:31 am, Gubatron <[EMAIL PR
Hello all,
I've a problem with Jython and importing .py inside a jar.
I'm putting .class and .py files inside .jar files.
myjar.jar
MyJar\SomeClass.class
MyJar\main.py
MyJar\otherModule.py
So I add the myjar.jar to Jython's sys.path
org.python.core.PySystemState p