From: Samuele P. <pe...@in...> - 2001-09-17 22:59:01
|
Hi. > Thanks to all who answered my original question. I wanted to put a caveat in the archive for future reference. > > This scheme works well but appears a bit finicky. Namely, if you pre-compile the standard python library into .class files (to save time later), they will not load from a jar. Do you mean *$py.class files produced by the interp? you should be able to put them inside the jar and that should work, otherwise is a bug :) If you mean precompiled by jythonc ... that's another thing. > One question to those of you who know the source. In what class does the bulk of the loading take place? I want to be able to load both *.class files and *py files and I don't think it should be too bad of a change. > See above. In any case importing is implemented in org.python.core.imp and the various *PackageManager classes ... regards, Samuele Pedroni. |