py2exe for WMI

Tim Golden tim.golden at viacom-outdoor.co.uk
Tue May 24 10:36:58 EDT 2005


| Hello All.
|   I'm trying to 'compile-to-EXE' a python program which uses 
| Win32 & WMI to
| pull system info. from the PC such as serial number, CPU 
| speed, etc.  I'm
| having problems with py2exe -- with regard to Win2000 & WinXP 
| platforms.  It
| seems that the program only works if I have one typelib for 
| WinXP and a
| slightly different one for Win2000.  Here is my relevent 
| section from the
| py2exe setup.py:

[... snipped ...]

| Can anyone tell me how I might make one unified py2exe 
| setup.py that'll
| 'compile' for both Win2000 & WinXP?
| 
| If not, can someone give me a hint as to how I can have a 
| python 'launcher'
| which can determine the difference between Win2000 & WinXP?  Using the
| sys.platform, they both show as Win32.
| 
| Thanks!
| Dave

There was a thread about this on the python-win32 list a 
while back. I think this is the start of the the thread
(altho' it's a bit confusing). The conclusion seems to
be that there's no conclusion. Maybe there's more info
on the py2exe list/wiki?

http://aspn.activestate.com/ASPN/Mail/Message/Python-win32/2007557

As to the other question (which platform am I on) there
was also a thread about this recently:

http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/b87d5de8f91c8e9c?tvc=1&q=platform+&hl=en

which, in short, says: use the platform module

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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