|
From: Samuele P. <pe...@in...> - 2001-05-27 19:46:34
|
Hi. > > Hi, > > I have a jython package name starting with the same package as my > java package. e.g., > > foo/bar/test.py in Jython > > and > > foo/jython/rocks/RockTheWorld.class in Java > > Let's say I want to use RockTheWorld which is a Java class. > Normally, we use > > from foo.jython.rocks import * > > However, since the jython package has precendence over the Java > classpath, Jython says it couldn't find "jython" package. The > reason is because both package path starts with foo. > > Here is my question: Why didn't Jython backtrack to try the rest > of the path to find foo.jython.rocks package? Is this a bug? > As far as I know jython backtracks. This is - however - not true with jythonc-ompiled code. Is that your case? otherwise you should come with a detailed not working case, I have just tried with an example case and everything works fine. regards. |