Is the OS win9x or winnt? How to detect it?

Chen chenpuqing at 163.net
Sat Mar 1 21:31:37 EST 2003


Is it possible to detect whether the OS is win9x or winnt?

I used os.name but it returns "winnt" even on win98se. While sys.platform
returns "win32".

Thanks!







More information about the Python-list mailing list