Finding out the OS distribution name (platform.py)

M.-A. Lemburg mal at lemburg.com
Fri Oct 22 12:53:31 EDT 1999


Jeff Bauer wrote:
> 
> "M.-A. Lemburg" wrote:
> > Some information about MSDOS, Amiga and Windows CE would also
> > be nice, BTW.
> >
> > If all goes well, the module might be a good candidate for the
> > standard distribution. It offers *much* more detailed information
> > than sys.platform.
> 
> A worthy goal.
> 
> > I've uploaded a new version:
> >     http://starship.skyport.net/~lemburg/platform.py
> > To see if it works on your platform, simply run the script.
> 
> It works on CE:
> 
> >>> platform.platform()
> 'wince'
> >>> platform.system()
> 'wince'
> >>> platform.node()
> 'Handheld_PC'
> 
> All other values return the null string, but it
> should not be difficult to figure out: release,
> version, machine, and processor.  If you'll leave
> a slot open for 'wince' in your next release, I'm
> sure we can supply the code to compute these values.

I've just uploaded a new version with 'wince' in the
supported versions for system_ver(). Could you try it ?

Thanks,
-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                    70 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/




More information about the Python-list mailing list