[IronPython] platform.system() == "cli"
dinov at microsoft.com
Fri Jan 9 01:15:59 CET 2009
It'll return "posix" if the .NET implementation reports System.Environment.OSVersion.Platform as Unix.
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] 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 <oren at held.org.il> 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
> Users at lists.ironpython.com
More information about the Ironpython-users