[IronPython] Running IronPython code from C#

Frédéric Cadier f.cadier at free.fr
Wed Jul 12 15:53:04 CEST 2006


The embedded solution... is there a mean ?

Thanks

JoeSox a écrit :
> 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
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060712/7b6d519b/attachment.html>


More information about the Ironpython-users mailing list