From: <Mat...@i2...> - 2002-01-23 20:53:15
|
Shouldn't the following be equivalent? I can't seem to get the jreload version to work. start jython with some.jar in cp, then: from org import somepackage OR start jython with no classpath: import jreload ls = jreload.makeLoadSet('myls', ["/path/to/some.jar"]) from myls import org from org import somepackage ImportError: cannot import name somepackage The goal here is to have a script be able to use the same import lines, regardless of wether its being called from the command line using the correct classpath, or from another script which sets up its classpath/namespace via jreload. Matt |