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

Chen chenpuqing at
Sun Mar 2 03:31:37 CET 2003

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

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


More information about the Python-list mailing list