How to check if OS is unix or pc

kyosohma at gmail.com kyosohma at gmail.com
Tue Apr 3 17:23:21 EDT 2007


On Apr 3, 4:12 pm, "bahoo" <b83503... at yahoo.com> wrote:
> In Matlab, there is a "isunix" command.
> Is there something similar in python?
>
> Thanks!
> bahoo

Check out the platform module. It should do what you need. The
"release()" method is especially useful.

Mike




More information about the Python-list mailing list