os.system help

Fredrik Lundh fredrik at pythonware.com
Sun Apr 18 14:50:45 EDT 2004


Reid Nichol wrote

> I know there has to be a way to tell if I'm on a certain platorm.
> Something like:
> if __win32__:
> print 'on windows'
>
> But, I can't find any docs on that.  I'm probably looking in the wrong
> place, so, could someone point me in the right direction or just give me
> that if statment.

if sys.platform == "win32":
    print "on windows"

</F>







More information about the Python-list mailing list