Hi, 

I think that I'm missing something. There is a way to use (import) python modules in a script and run it in my java code, whitout put in my code the path to jython jar?
I'm trying to use the 're' module to work with regex, but when I run the code I receive an error "no module named re".

I'm able to run my script if I delete the code that uses regex (or try to import any module)

I tried to do this:
http://stackoverflow.com/questions/1252965/distributing-my-python-scripts-as-jars-with-jython

to include de Lib directory in my jython.jar, but it didn't work. I'm still getting the same error.

Do I really need to put in my code, the path to jython home? Or I'm missing something important?

Or I'm searching with the wrong keywords

---

Just putting a little code to help. What i'm trying to do is:


PythonInterpreter interpreter = new PythonInterpreter();

interpreter.exec("from scripts.calc_executor import CalcExecutor");
        
jyCalcExecutor = interpreter.get("CalcExecutor");

And it's working fine, unless I try to import the re module.

regards,
Rodrigo Gomes