How to differentiate Win98 from NT ?

Pieter Claerhout PClaerhout at CREO.BE
Thu Jan 20 05:02:17 EST 2000


Try Marc's platform.py module. Here is the URL:

http://starship.skyport.net/~lemburg/platform.py

Pieter

-----Original Message-----
From: Svante Kleist [mailto:Svante.Kleist at edt.ericsson.se]
Sent: Thursday, January 20, 2000 8:04 AM
To: python-list at python.org
Subject: How to differentiate Win98 from NT ?



Dear Pythonists,

"os.name" says "nt" for both Windows NT and Windows 98.

In order to differentiate between the two,
I could search for the existence of "cmd.exe",
but that feels rather clumsy. 

Better suggestions, please?

 / Svante Kleist
/NEMESIS systemDesign, Stockholm
-- 
http://www.python.org/mailman/listinfo/python-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: platform.py.url
Type: application/octet-stream
Size: 103 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000120/4d2205d4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: platform.py.url
Type: application/octet-stream
Size: 103 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000120/4d2205d4/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: platform.py.url
Type: application/octet-stream
Size: 103 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000120/4d2205d4/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: platform.py.url
Type: application/octet-stream
Size: 103 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000120/4d2205d4/attachment-0003.obj>


More information about the Python-list mailing list