Testing for win95 vs. win98 vs. winNT?
Mike Steed
mike.steed at natinst.com
Fri May 7 11:48:38 EDT 1999
David Ascher wrote:
>
> 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).
>
> --david ascher
If you don't mind using one tiny extension module :-), you can use Sam
Rushing's calldll module to try loading the DLL. Of course, depending
on the DLL, this may have undesirable side effects....
-Mike
More information about the Python-list
mailing list