[pylucene-dev] building JCC on Windows with MinGW
Andi Vajda
vajda at osafoundation.org
Thu Mar 20 16:01:36 PDT 2008
On Thu, 20 Mar 2008, Bill Janssen wrote:
>>> 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.
Yes, that's possible.
Andi..
More information about the pylucene-dev
mailing list