[IronPython] How do you run compiled scripts(dll) by C# host?
dinov at microsoft.com
Tue Aug 18 06:17:10 CEST 2009
What Curt says is true but I would suggest doing scriptRuntime.LoadAssembly instead.
Once you do that you can do engine.ImportModule (an extension method defined in the Python class) do get a ScriptSource for any of your compiled modules. InitializeModule may change from major version to major version of IronPython - but engine.ImportModule is a fixed public API.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Curt Hagenlocher
Sent: Monday, August 17, 2009 8:38 PM
To: Discussion of IronPython
Subject: Re: [IronPython] How do you run compiled scripts(dll) by C# host?
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<mailto: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.
I think we can use the implementation
The code doesn't use Microsoft.Scripting.Hosting.[ScriptScope] but
We can make instances of [Scope], but we cannot make ones of
Because both ScriptScope.ScriptScope() and ScriptScope.Scope are
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users