Tim Golden wrote: >>> [Bob Gailer] >>> >> Yeah, but when I said it was working, it was working in the server! >> Wednesday AM just fine. Wednesday afternoon suddenly not working fine. I >> swear I didn't change anything! >> >> Is there some way my program can introspect? to see if it is in a thread? >> > > It's a bit clunky, but I think you can do this: > > <code> > import threading > import pythoncom > > if threading.currentThread ().getName () <> 'MainThread': > pythoncom.CoInitialize () > I had my code return threading.currentThread().getName() and it is "H:\apache2triad". I'm not sure what that tells me, except that it is in a thread. I think I have a lot to learn about Apache and mod_python. >
-- Bob Gailer 510-978-4454 _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32