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 _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32