Running the makepy tool automatically from a python script

Roger Upole rupole at
Tue Jun 22 00:14:47 CEST 2004

win32com.client.gencache.EnsureDispatch('your.application') will generate
makepy module for the interface if it doesn't already exist.

"Svenn-Ivar Svendsen" <ssvendsen at> wrote in message
news:67c8710b.0406211039.1824b6dc at
> Hi,
> I use the makepy tool in pythonwin to generate wrappers for my
> connection point (event) interfaces in a project. It works fine.
> The question is; Is it possible, in a python script, to detect if
> wrappers for COM (event) interfaces the script uses have been created,
> and in case not somehow call the makepy tool manually before
> proceeding? How should this be done?
> Best regards,
> Svenn-Ivar

More information about the Python-list mailing list