[IronPython] NLTK site-module in C# app?
jdhardy at gmail.com
Wed Jun 23 00:28:04 CEST 2010
On Tue, Jun 22, 2010 at 2:47 PM, William Johnston <williamj at tenbase2.com> wrote:
> However, I am having difficulties finding your zlib dll from the DLLs
I assume this is from a hosting application, correct?
All you'll need to do is load the assembly from disk, and then load it
into the engine:
Assembly zlib = Assembly.LoadFile(@"path\to\IronPython.Zlib.dll");
Your hosted IronPython scripts should now be able to import zlib.
The IronPython console gets all of the .dll files in the DLLs folder,
loads them, and calls .LoadAssembly if the load succeeds. If you have
many dlls to load, or you want users to be able to add them, you'll
need to duplicate that part for your hosting application.
More information about the Ironpython-users