[Tutor] os.name on Windows 98

Magnus Lyckå magnus@thinkware.se
Thu Jul 10 20:14:02 2003


At 16:15 2003-07-10 -0700, Tony Cappellini wrote:
> > >Why does os.name return 'nt' on a Windows 98 machine ?
>The question should have been "Why does os.name return the wrong name for
>the OS on a Windows 98 machine ?

Beacuse os.name was never intended to tell you the name of
any operating system. It tells you the name of a Python
module it uses! Didn't you read the quote from the docs I gave?


--
Magnus Lycka (It's really Lyckå), magnus@thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The Agile Programming Language