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

Chen chenpuqing at 163.net
Sun Mar 2 03:31:37 CET 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