On Thu, 20 Mar 2008, Bill Janssen wrote:
I guess, I should rewrite this to attempt loading jvm.dll and only play the
Path trick if that call fails.
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.
I think that until this trick can be made to work so that it's not in the
way of exotic installs without too many hacks, it's better for you to put
this code into sitecustomize.py in your Python distro for Windows.
I thought I was getting the "default" JRE, though. I've got 4
different JREs installed on my Windows machine (all versions of Java 6).
An example of such an exotic install is Chandler where we ship a trimmed
build of openjdk that is not involved with the registry at all. Chandler's
Python on Windows also doesn't include winreg and has patches that
explicitely make it ignore the registry otherwise.
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev