Re: [IronPython] determine if running under IP

2008-05-21 Thread Dan Eloff
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

[IronPython] determine if running under IP

2008-05-20 Thread Slide
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

Re: [IronPython] determine if running under IP

2008-05-20 Thread Dave Fugate
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