IronPython newbie: not clear on imports and assemblies

Benjamin Kaplan benjamin.kaplan at case.edu
Wed Apr 15 16:39:54 EDT 2009


On Wed, Apr 15, 2009 at 4:31 PM, Thomas Gagne <tgagne at wide-open-west.com>wrote:

> OK--I also haven't programmed on .NET before.
>
> My goal is to play with the "EssentialPDF" libraries inside IronPython.
>  But I'm not clear on how to import (load?) Essential's .dll files.  Of
> course, all the samples files are in C# and VB.  I guess I"m wondering if
> Essential's libraries (assemblies?) should already be in my path or if I
> need to provide a path to them, and whether or not I'm going to use "import"
> or Assembly.Load(), and if the latter, where am I to find Assembly?  I'm
> pretty sure that has to be imported as well 'cause whenever I try to use it
> I'm told it doesn't exist...
>
> Anyway, I'll keep Googling around and reading tutorials to catch-up.  I
> haven't used Python since 1999 so I need some refreshing...
> --


I haven't used IronPython that much, but I think you have to load the
assembly using clr.AddReference and then you can import the library just
like you import any other python module.

>
> Visit <http://it.toolbox.com/blogs/anything-worth-doing> to read
> my rants on technology and the finance and consulting industries.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090415/fd6237bc/attachment-0001.html>


More information about the Python-list mailing list