Py2exe and WMI module

Tim Golden tim.golden at viacom-outdoor.co.uk
Tue Jan 27 03:46:22 EST 2004


>From: Thomas Heller [mailto:theller at python.net]
>
>
>Tim Golden <tim.golden at viacom-outdoor.co.uk> writes:
>
>>>From: nekiv at start.no [mailto:nekiv at start.no]
>>>
>>>I'm having a problem when I try to make a standalone 
>installation of a
>>>Python program using Tim Goldens WMI-module.  The py2exe produce the
>>>exe-file as expected, but it fails to execute.
>>
>> [... snip my long-winded explanation of generating typelib params ...]
>>
>
>I think the 'official' way is to run makepy with the '-i' flag, then it
>prints out this:
>
>c:\>\python23\lib\site-packages\win32com\client\makepy.py -i
>Microsoft WMI Scripting V1.2 Library
> {565783C6-CB41-11D1-8B02-00600806D9B6}, lcid=0, major=1, minor=2
> >>> # Use these commands in Python code to auto generate .py support
> >>> from win32com.client import gencache
> >>> 
>gencache.EnsureModule('{565783C6-CB41-11D1-8B02-00600806D9B6}',
> 0, 1, 2)

Ah. I knew there had to be some other way of doing it. While I'm
on the subject, is there anything I can offer to do within the
wmi module itself which will make it easier to py2exe it? It
doesn't look like it, but I thought I'd make the offer.

TJG


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




More information about the Python-list mailing list