[python-win32] C++ thread cannot acquire GIL

2007-11-06 Thread Brad Johnson
I am embedding a Python interpreter in a C++ app for Windows. The main thread in my application calls PyEval_InitThreads(); At some point, the main thread creates a new thread to do some concurrent work using the Python interpreter. The trouble is that in my worker thread I am never able to comp

[python-win32] NetUseAdd() and DFS roots

2007-11-06 Thread Sean Peterson
Has anyone mapped a share via a DFS link using NetUseAdd()? This is my scenario: \\NTS-03.central.purdue.lcl\MI is a DFS link on a Win2003 Server that transparently redirects clients to \\itifs03.itap.purdue.edu\itea_zonedirs\MI import win32net # this works -- win32net.NetUseAdd(None,1,{'r