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.
 
thanks!
Jeff

--- On Thu, 12/3/09, Mark Hammond <skippy.hamm...@gmail.com> wrote:


From: Mark Hammond <skippy.hamm...@gmail.com>
Subject: Re: [python-win32] win32com on vista
To: "Jeff Peery" <jeffpe...@yahoo.com>
Cc: python-win32@python.org
Date: Thursday, December 3, 2009, 5:06 PM


On 4/12/2009 11:38 AM, Jeff Peery wrote:
> hello,
> I've got a wxpython app that uses win32com and I've packaged it all up
> using py2exe. I'm having a problem because the
> win32com.client.gencache.py appears to be creating some
> directories/files in the installation directoy (which is under program
> files) and a non admin user doesn't have write to do this. why is it
> creating these files and can I redirect them to another place like that
> application data folder?

The best solution is probably to arrange for the pre-generated modules to be 
included in the py2exe distribution - there are some docs on this in the py2exe 
directory.

Alternatively, check out win32com\__init__.py and look for how __gen_path__ is 
setup.

HTH,

Mark



      
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to