How to find out operating system

Syver Enstad syver-en+usenet at online.no
Thu Jun 27 14:17:45 EDT 2002


Peter Hansen <peter at engcorp.com> writes:

> David LeBlanc wrote:
> > 
> > You might try os.environ:
> > 
> > os.environ['WINOS'] -> WIN2000
> > 
> > I don't know if WINOS is defined on '98 or ME, but it should be good
> for NT,
> 
> > 2K and XP
> 
> It is not.

Neither is it defined on win2k pro:

KeyError: WINOS

-- 

Vennlig hilsen 

Syver Enstad



More information about the Python-list mailing list