Easy=) Check the value of sys.platform which will be cli under IronPython.
Except if you're running IronPython under silverlight, in which case
it will be 'silverlight'
You could do:
try:
import clr
IronPython = True
except ImportError:
IronPython = False
Except if you're running
Is there a way in Python code to determine if you are running under
IronPython or C Python?
Thanks
--
slide-o-blog
http://slide-o-blog.blogspot.com/
___
Users mailing list
Users@lists.ironpython.com
Easy=) Check the value of sys.platform which will be cli under IronPython.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Slide
Sent: Tuesday, May 20, 2008 4:20 PM
To: Discussion of IronPython
Subject: [IronPython] determine if running under IP