[pylucene-dev] gcj PyLucene threads and COMSPEC

Bill Janssen janssen at parc.com
Fri Oct 19 09:41:53 PDT 2007


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?

Bill


More information about the pylucene-dev mailing list