How to know if OS is Win98 or NT ?

Richard Gruet rgruet at ina.fr
Mon Mar 6 23:57:45 CET 2000


Hi everybody,

Is there a way in Python to determine if we are specifically under
Win95, Win98, or WinNT ?
sys.platform == 'win32' and os.name == 'nt' in all cases !

Thanks,

Richard




More information about the Python-list mailing list