How to refer to current Interpreter in script?

L

larrydu

Hi,

Please excuse me if this is a dumb question, but I am new to
python/jython and can't figure this out. Basically I have a java class
myClass with a static method myMethod that takes a PythonInterpreter as
a parameter.

Now I write a jython script in which I try to invoke that method with
current interpreter as the argument. How do I get this current
interpreter? The implementation of myMethod can't be changed.

import myClass as mc
mc.myMethod(?)

Thanks in advance for your help!

Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top