Re: [Ironpython-users] identifying cli implementation

2014-01-05 Thread Jeff Hardy
If os.name == 'posix' then you're on Mono (or some bizarro world where MS has a Unix .NET impl), but Mono on Windows will still have os.name == 'nt'. Vilibald's suggestion will work for now but it would be nice to have an easily usable built in under sys.implementation. - Jeff On Sat, Jan 4, 2014

Re: [Ironpython-users] identifying cli implementation

2014-01-04 Thread Vilibald Wanca
Hi, until now, to detect IronPython I have checked sys.platform == 'cli' Now I need to distinguish between .net and mono. The check candidate is os.name, but is there a better one? I'd rely on official approach from mono: http://www.mono-project.com/FAQ:_Technical#How_can_I_detect_if_am_runni