From: Phil S. <psu...@es...> - 2001-09-18 14:49:46
|
<AntonioSaid> 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. </AntonioSaid> I believe I answered this directly in my first reply to your question. Apply this patch: org/jython/core/imp.java in jython-2.1a3: imp.java 498a499,502 > //if it's not a builtin or in the python path, try the classpath > ret = loadFromClassLoader(name, imp.class.getClassLoader()); > if (ret != null) return ret; > Note that I don't know the source code, just poked around for a couple of hours and this seems to work. |