Re: [Ironpython-users] Unhandled .Net Exception

2011-10-25 Thread John Dickinson
Thanks Dino, that's exactly what I wanted! On Mon, Oct 24, 2011 at 6:16 PM, Dino Viehland wrote: > This should do it – the hosting APIs changed quite a bit between 2.0 and > 2.7: > > import clr > > clr.AddReference('IronPython') > > from IronPython.Runtime import PythonContext >

Re: [Ironpython-users] Unhandled .Net Exception

2011-10-24 Thread Dino Viehland
This should do it - the hosting APIs changed quite a bit between 2.0 and 2.7: import clr clr.AddReference('IronPython') from IronPython.Runtime import PythonContext import System clr.GetCurrentRuntime().GetLanguage(PythonContext).FormatException(System.Exception()) There could be other variations