win32com, generating the cache programaticaly?

Roger Upole rupole at hotmail.com
Wed Oct 12 07:47:06 CEST 2005


"Andrew Markebo" wrote:
>
> Hello!
>
> I am messing around with communicating between LabVIEW and Python, got
> it to work by a small 'fix' (grabbing the generated file, and
> importing it by hand)
>
> What I might want to do, is to automatically generate the data done by
> executing makepy.py and run by it.
>
> What I select in makepy.py is a library "LabVIEW data 7.1", I would
> like to do this from my program. Any hints?
>
> Then, is it possible making this on a minor mode, basically I have
> only to dig out the CLSID of "LabVIEW data 7.1" and put it into the
> generated file.. sort of??
>

You can use win32com.client.gencache.EnsureDispatch
to automatically generate the makepy file for an object's library
when the object is created.  Use the bForDemand option to
only generate the code for objects as needed.

        Roger





----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



More information about the Python-list mailing list