It'll return "posix" if the .NET implementation reports 
System.Environment.OSVersion.Platform as Unix.

> -----Original Message-----
> From: [email protected] [mailto:users-
> [email protected]] On Behalf Of Jeff Hardy
> Sent: Thursday, January 08, 2009 4:13 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] platform.system() == "cli"
>
> On Thu, Jan 8, 2009 at 3:01 PM, Oren Held <[email protected]> wrote:
> > In all Unices, using platform.system() returned the OS name just
> fine. Is there
> > a better way for getting the OS name on both CPython & IronPython?
>
> os.name is probably what you're looking for, although I don't know how
> it behaves on *nix (it return 'nt' on Windows).
>
> - Jeff
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to