[pylucene-dev] gcj PyLucene threads and COMSPEC

Andi Vajda vajda at osafoundation.org
Fri Oct 19 09:45:23 PDT 2007


On Fri, 19 Oct 2007, Bill Janssen wrote:

> On Windows, I'm calling os.popen() in a sub-thread, and I find that
> when I'm using PyLucene (and thus gcj threads), I'm suddenly getting
> an exception of something like "COMSPEC not defined, so can't run
> shell".  This is code that's worked for years, on the same platform
> and same Python (2.4).  Sure enough, when I print out the env before
> calling os.popen(), there's no def for COMSPEC (and few other defs,
> either).
>
> So, who's supposed to be setting up the environment in a new thread?

Hmmm, not sure. Maybe you should ask the gcj list at java at gcc.gnu.org.

Andi..



More information about the pylucene-dev mailing list