[pylucene-dev] two different JCC modules in same VM; initVM()?
Bill Janssen
janssen at parc.com
Thu Mar 6 17:17:26 PST 2008
> You can also get this env value by calling getVMEnv() as in:
>
> >>> import foo
> >>> foo.initVM(foo.CLASSPATH)
>
> >>> import os, foo, bar
> >>> bar.initVM(classpath=os.pathsep.join([foo.CLASSPATH, bar.CLASSPATH]),
> env=foo.getVMEnv())
>
This is close, but what I'd really like to be able to do call
bar.getVMEnv() to get the environment. I don't have a handle on foo
at this point, and it would introduce a lot of coupling to keep one.
> If the classpath resetting doesn't stick, try setting it to both in the
> first initVM() call.
Nasty coupling effect. I don't want foo to have to know about bar,
and I don't want bar to have to know about foo.
Bill
More information about the pylucene-dev
mailing list