how to determine Operating System in Use?

Ian F. Hood IanFHood at gmail.com
Wed Dec 13 18:32:46 EST 2006


Hi
In typically windows environments I have used:
    if 'Windows' in os.environ['OS']...
to prove it, but now I need to properly support different environments.
To do so I must accurately determine what system the python instance is 
running on (linux, win, mac, etc).
Is there a best practises way to do this?
TIA
Ian 






More information about the Python-list mailing list