Hi Jython Gurus,

I am new to Jython.I have a task where I need to call some Python scripts from java code in a loop.
The thing is each time the argument provided to that python script is different.
Using PythonInterpreter.initialize method I am not able to change the arguments as it can be called only once.
Please tell me a method whereby I can change the sys.argv value at the run time as I have tried several methods and fail.

One method I tried :

String myString = "arg1";
PythonInterpreter interpreter = new PythonInterpreter();
interpreter.exec("sys.argv[3] = myString");


Here instead of evaluating myString it takes like <type myString>.

Please help me out.
Thanks in advance.


Sincerely,

Prashant golash.