Running the makepy tool automatically from a python script

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


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

"Svenn-Ivar Svendsen" <ssvendsen at atmel.com> wrote in message
news:67c8710b.0406211039.1824b6dc at posting.google.com...
> 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