jython: PythonInterpreter runs script, wrong classpath

Discussion in 'Python' started by HK, Aug 4, 2005.

  1. HK

    HK Guest

    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.
     
    HK, Aug 4, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flip
    Replies:
    3
    Views:
    8,044
    Tony Morris
    Feb 9, 2004
  2. Gabe
    Replies:
    3
    Views:
    1,411
  3. Tennessee James Leeuwenburg

    Jython classpath question

    Tennessee James Leeuwenburg, Jul 17, 2003, in forum: Python
    Replies:
    5
    Views:
    521
    Tennessee James Leeuwenburg
    Jul 18, 2003
  4. Harald Kirsch
    Replies:
    0
    Views:
    430
    Harald Kirsch
    Jul 18, 2003
  5. David McNab
    Replies:
    0
    Views:
    676
    David McNab
    Apr 9, 2004
  6. Divya Prakash
    Replies:
    0
    Views:
    619
    Divya Prakash
    Dec 19, 2006
  7. Replies:
    2
    Views:
    1,058
  8. Pinegar, Kent T

    FW: [Jython-users] Jython Licensing Question

    Pinegar, Kent T, Jul 24, 2008, in forum: Python
    Replies:
    0
    Views:
    528
    Pinegar, Kent T
    Jul 24, 2008
Loading...