Which OS?

Jesper Olsen jolsen at mailme.dk
Wed Jul 10 05:23:58 EDT 2002


Gerhard Häring <gerhard.haering at gmx.de> wrote in message news:<slrnaimqv2.vl.gerhard.haering at lilith.my-fqdn.de>...
> Tom Harris wrote in comp.lang.python:
> > Greetings,
> > 
> > How do I tell which OS is running from within Python?
> 
> The usual answer is sys.platform, though I wish there was a better
> one.

Or for a second opinion: os.name

Cheers
Jesper



More information about the Python-list mailing list