[pylucene-dev] two different JCC modules in same VM; initVM()?
Andi Vajda
vajda at osafoundation.org
Thu Mar 6 17:38:03 PST 2008
On Thu, 6 Mar 2008, Bill Janssen wrote:
> It would be really handy if JCCEnv had a method which gave the current
> CLASSPATH, so that I could just append to it.
Agreed, that would be a good addition.
Note, that you can actually get it already, albeit via a 'coupled' way:
>>> import foo
>>> foo.initVM(classpath=foo.CLASSPATH)
>>> import foo, bar
>>> classpath = foo.System.getProperty('java.class.path')
>>> massage classpath
>>> bar.initVM(classpath=classpath, env=foo.getVMEnv())
This requires that you ask jcc to wrap java.lang.System for you (which is a
handy thing to have around). But yes, having a getClassPath() method on env
would be helpful.
Andi..
More information about the pylucene-dev
mailing list