OK thanks Andi. I was missing that initVM is needed even to populate the statics, but that makes total sense.
Mike On Tue, Oct 13, 2009 at 2:28 PM, Andi Vajda <[email protected]> wrote: > > On Tue, 13 Oct 2009, Michael McCandless wrote: > >> One question: how does one gain access to the public static constants >> Version.LUCENE_XX from oal.Version? > > >>> import lucene > >>> lucene.initVM(lucene.CLASSPATH) > <jcc.JCCEnv object at 0x1004730d8> > >>> lucene.Version.LUCENE_CURRENT > <Version: LUCENE_CURRENT> > >>> lucene.Version.LUCENE_24 > <Version: LUCENE_24> > >>> lucene.Version.LUCENE_CURRENT.onOrAfter(lucene.Version.LUCENE_29) > True > > And there is also this one, the version of Lucene compiled into PyLucene: > >>> lucene.VERSION > '2.9.0' > > Andi.. >
