win32com: gencache problem

Markus von Ehr mvonehr at web.de
Thu May 17 12:52:59 EDT 2001


I´m using Gordon´s installer 3j for Python 2.0 and the win32com
extensions by
Mark Hammond. In my program I only use the win32com.client.dynamic
interface
for the communication with IExplorer.
The "frozen" version reports a gencache error: the gen_py/__init__.py
file
is not found in the win32com.__gen_path__ directory.

Gordon MacMillan told me a solution that finally worked:
In the frozen version I have a gen_py/ directory holding a file called:
__init__.py. My import section looks like this:

import win32com, os.path
win32com.__gen_path__ = os.path.abspath(´.´) + "\\gen_py"
import win32com.client.dynamic

Why is the win32com.client.dynamic interface looking for the gencache?
Can´t
that be avoided, because I explicitely want to have the dynamic access?

Thanks for all replies,

Markus





More information about the Python-list mailing list