Re: Jython: Packing several .py on .jar, problem importing .py modules within the .jar

2008-12-03 Thread Gubatron
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

Re: Jython: Packing several .py on .jar, problem importing .py modules within the .jar

2008-12-03 Thread Gubatron
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

Jython: Packing several .py on .jar, problem importing .py modules within the .jar

2008-12-03 Thread Gubatron
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