How to differentiate Win98 from NT ?
Pieter Claerhout
PClaerhout at CREO.BE
Thu Jan 27 07:54:32 EST 2000
As I said before, use M. A. Lemburg's platform.py
module. You can find it here:
http://starship.python.net/crew/lemburg/
Kind regards,
Pieter
Pieter Claerhout - PClaerhout at creo.be
Response Center - Applications Support
Creo Europe - Excelsiorlaan 21 - 1930 Zaventem - Belgium
Tel: +32 (2) 711 14 00 - Fax: +32 (2) 720 96 71
-----Original Message-----
From: Svante Kleist [mailto:Svante.Kleist at edt.ericsson.se]
Sent: Thursday, January 27, 2000 1:50 PM
To: python-list at python.org
Subject: Re: How to differentiate Win98 from NT ?
Not very solid, I'd say. In my case, NT lives in D:\nt40
/ Svante
In article <86du41$lv0$1 at gxsn.com>, matt at resonation.co.uk says...
> try :
> if os.environ['windir']=="C:\\winnt":
> # do whatever
> else:
> ....
>
>
>
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list