Re: [IronPython] Cast double to object

2011-03-09 Thread Brian Ashcroft
: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Brian Ashcroft Sent: Wednesday, March 09, 2011 9:44 AM To: users@lists.ironpython.com Subject: [IronPython] Cast double to object I have an array of type object that I am trying to populate from inside a

[IronPython] Cast double to object

2011-03-09 Thread Brian Ashcroft
I have an array of type object that I am trying to populate from inside a script. I create the data, type it and assign it to the array. However, it seems that ironpython will only accept data that has been cast to int. Here is the code, can you tell me what I am doing wrong? RectangleToken =

Re: [IronPython] Loading a static lib a second time in hostedironpython

2011-02-03 Thread Brian Ashcroft
Thanks for the help, I discovered clr.AddReferenceToFileAndPath which does all the hard work off adding the path to the sys.path ;-) Thanks, Brian -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Thursda

Re: [IronPython] Loading a static lib a second time in hosted ironpython

2011-02-03 Thread Brian Ashcroft
source = engine.CreateScriptSourceFromString(code, SourceCodeKind.Statements ); source.Execute(scope); } From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Brian Ashcroft Sent: Thursday, February 03, 2011 9:00 AM To: users@lists.ir

[IronPython] Loading a static lib a second time in hosted ironpython

2011-02-03 Thread Brian Ashcroft
Hello, I have an ironpython instance running within my application. This instance is used to control the application. I have a math dll that I reference in the hosting application that I would like to be able to use also in the ironpython scripting. However, I get error messages when I try t