[IronPython] Running IronPython code from C#

JoeSox joesox at gmail.com
Wed Jul 12 15:51:16 CEST 2006

On 7/12/06, JoeSox <joesox at gmail.com> wrote:
> On 7/12/06, Frédéric Cadier <f.cadier at free.fr> wrote:
> > Thanks Eyvind,
> >
> > but this forces me to transfer my IP code in some C# strings ! What i
> > want is being able to use the assembly generated from my ip scripts
> > (using the language service of the VS20005 SDK) and then use it in my C#
> > code...
> Do you mean something like...?
> Engine1.AddToPath("E:\\Myscriptfolder");
> cn_Engine1.Execute("import myscript");
> cn_Engine1.Execute("m=myClass()");
> cn_Engine1.Execute("m.mydef()");
> Or do you mean how do you embed your files and compile a C# .dll?
> --
> Later, Joe

Of course "cn_Engine1" is a typo.  I just learned I need to be in a
meeting in ten minutes so I pressed send to early.

Later, Joe

More information about the Ironpython-users mailing list