[IronPython] How do you run compiled scripts(dll) by C# host?

Curt Hagenlocher curt at hagenlocher.org
Tue Aug 18 05:37:30 CEST 2009


You can convert between Scope and ScriptScope by using
Microsoft.Scripting.Hosting.Providers.HostingHelpers.

On Mon, Aug 17, 2009 at 7:48 PM, KATO Kanryu <k.kanryu at gmail.com> wrote:

> How do you run compiled scripts(dll) by C# host?
>
> Hitherto, I run IronPython scripts by my C# host with the following.
> - Microsoft.Scripting.Hosting.ScriptEngine
> - Microsoft.Scripting.Hosting.ScriptScope
>
> I think we can use the implementation
> IronPython.Runtime.Operations.PythonOps.InitializeModule() .
> The code doesn't use Microsoft.Scripting.Hosting.[ScriptScope] but
> Microsoft.Scripting.Runtime.[Scope] .
> We can make instances of [Scope], but we cannot make ones of
> [ScopeScope] directly.
> Because both ScriptScope.ScriptScope() and ScriptScope.Scope are
> defined 'internal'.
>
> Comments?
> _______________________________________________
> 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/20090817/8a337f24/attachment.html>


More information about the Ironpython-users mailing list