[pylucene-dev] building JCC on Windows with MinGW

Bill Janssen janssen at parc.com
Thu Mar 20 15:57:25 PDT 2008


> > Ah, good idea.  I wasn't sure if you could "load jvm.dll" from Python
> > without the WinPython extensions.
> 
> The problem with my earlier idea of rewriting this in C is that, in order to 
> invoke the C, I have to load it and for that the Path has to be correct 
> already.

How about using ctypes to test whether the library is already on the
PATH?  ctypes.LoadLibrary("jvm"), I believe.  2.5 only, but that's not
really as much of an issue on Windows as it is on OS X.

If it's not on the PATH, use my code to look in the registry and
upgrade the PATH.

Bill


More information about the pylucene-dev mailing list