Testing for win95 vs. win98 vs. winNT?
Gordon McMillan
gmcm at hypernet.com
Fri May 7 08:57:12 EDT 1999
David Ascher writes:
> How can a Python program guess with a stock 1.5.2 (none of those
> fancy shmancy aussie win32 extensions!) whether it's running on
> win95, win98 or winNT? (In truth, I care only about whether a
> specific DLL is installed, but that correlates with win95 vs. the
> others).
By how hard a time os has keeping a straight face when you query
for platform <wink>.
- Gordon
More information about the Python-list
mailing list