Best way to detect IronPython
Posted
by Adal
on Stack Overflow
See other posts from Stack Overflow
or by Adal
Published on 2010-05-08T18:54:44Z
Indexed on
2010/05/08
18:58 UTC
Read the original article
Hit count: 406
I need to write a module which will be used from both CPython and IronPython. What's the best way to detect IronPython, since I need a slightly different behaviour in that case?
I noticed that sys.platform is "win32" on CPython, but "cli" on IronPython.
Is there another preferred/standard way of detecting it?
© Stack Overflow or respective owner