[python-win32] win32com on vista

Mark Hammond mhammond at skippinet.com.au
Fri Dec 4 23:38:32 CET 2009


On 5/12/2009 4:27 AM, Jeff Peery wrote:
> ok,
>  From what I understand the gen_py creates the files needed for the COM
> object to run. I can create them ahead of time and put them in the
> py2exe or I can create them on the fly. I am forced to create them as
> needed because I don't know exactly which com objects to package up. So,
> if I simpy delete the gen_py directory or rename it then the files are
> created under the user temp directory. this I think would solve the
> problem.
> My understanding of this is still shakey. I'm not using EnsureDispatch,
> just win32com.client.Dispatch. Does it matter? the Py2exe docs discussed
> only EnsureDispatch.

Simply using Dispatch() should not attempt to generate a file - but 
regardless of how it is being triggered, things should work fine once 
you arrange for the gen_py directory to be somewhere writable.

HTH,

Mark


More information about the python-win32 mailing list