[python-win32] Makepy odds?

Petr Gladkikh batyi at mail.ru
Tue Apr 22 23:20:31 EDT 2003


Hello.

I have used "win32com.client.gencache.EnsureDispatch('ProgramName')"
to generate interface wrappers. Classes in subdirectory of
...\Lib\site-packages\win32com\gen_py\ seems to be OK. But when I try
i = win32com.client.Dispatch("ProgramName") Python complains that
name "DispatchBaseClass" in declaration
"class IClassName(DispatchBaseClass)" is not defined. When I have
added "from win32com.client import DispatchBaseClass" before that
declaration it works well then.

Is it some misconfiguration or perhaps a bug in gencache?

-- 
Best regards,
 Petr                          mailto:batyi at mail.ru




More information about the Python-win32 mailing list