Grant,<br><br>that is possible. Just read the makepy.py script within win32com.client, and you will find that someway down main() there is<br><br>---------<br>GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec)<br>
---------<br><br>which does this. <br><br>BUT, for &quot;static&quot; usage of makepy-COM-Mappings I suggest to make makepy output it&#39;s results in a named file<br><br>makepy -o ADO28.py<br><br>and furtheron import that ADO28 file to access the variables. That does also work  with Excel and Word, and I am used to <br>
<br>import ExcelXX as Excel<br>ec=Excel.constants<br><br>and further on us ec.* for excel constants.<br><br>Best wishes,<br><br>HArald<br><br><div class="gmail_quote">On Thu, Aug 27, 2009 at 2:51 AM, Grant Paton-Simpson <span dir="ltr">&lt;<a href="mailto:grant@p-s.co.nz">grant@p-s.co.nz</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Basically I want to have an installation package automatically run the<br>
COM MakePy utility for the ADO 2.8 library. I believe I need to do this<br>
so that constants like win32com.client.constants.adTinyInt will be<br>
available when my application (<a href="http://www.sofastatistics.com" target="_blank">http://www.sofastatistics.com</a>) connects to<br>
MS Access and MS SQL Server databases.<br>
<br>
Ideally I would have a line doing something like this:<br>
<br>
win32com.runmakepy(&quot;Microsoft ActiveX Data Objects 2.8 Library (2.8)&quot;)<br>
<br>
Is it possible to do this programmatically?<br>
<br>
<br>
All the best, Grant<br>
_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>GHUM Harald Massa<br>persuadere et programmare<br>Harald Armin Massa<br>Spielberger Straße 49<br>70435 Stuttgart<br>0173/9409607<br>no fx, no carrier pigeon <br>-<br>LASIK good, steroids bad?<br>