jython: PythonInterpreter runs script, wrong classpath

H

HK

Hi,

I am using ant to run junit to run a java class that uses
a PythonInterpreter to execute a script. The script
complains about a "ImportError: cannot import name ..."
despite the fact that junit, on behalf of ant -v
pretends to be using exactly the right classpath.

Obviously the classpath does not make it into the
PythonInterpreter.

Question: Is there a sys variable which tells me
where the PythonInterpreter searches for (or lets
the JVM search for) classes?

Thanks,
Harald.
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top