Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > jython: PythonInterpreter runs script, wrong classpath

Reply
Thread Tools

jython: PythonInterpreter runs script, wrong classpath

 
 
HK
Guest
Posts: n/a
 
      08-04-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.classpath file instead of the CLASSPATH Environment variable. dontspammenow@yahoo.com Java 2 03-02-2008 08:19 AM
problem compiling project, classpath in xml ".classpath" "<classpathentry...>" jameshanley39@yahoo.co.uk Java 2 03-02-2007 12:37 PM
while using javac -classpath some.jar some.java (Where does classpath get stored?) Gabe Java 3 08-27-2004 07:02 PM
CLASSPATH, -cp and -classpath misunderstanding? Flip Java 3 02-09-2004 10:09 PM
Jython: preload PythonInterpreter with values for use in scripts Harald Kirsch Python 0 07-18-2003 04:55 PM



Advertisments