> 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
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to