How To Use Python And Windows Com In Pyramid (threads)?
I'm connecting to MS Word by win32com.client.Distpatch function and on the second request i've got error: 'CoInitialize has not been called.' I've found this topic: http://www.velo
Solution 1:
So i added call of CoInitialize in function:
@subscriber(NewRequest)defnew_request_subscriber(event):
import pythoncom
pythoncom.CoInitialize()
and works without exception.
Post a Comment for "How To Use Python And Windows Com In Pyramid (threads)?"