On Tue, Jul 5, 2011 at 10:21 AM, Chaim Krause <ch...@chaim.com> wrote:
> If I copy the dll into the same directory as the exe AND modify the code
> to...
>
> import clr
> clr.AddReferenceToFileAndPath("IronPython.Wpf.dll")
> import  wpf
>
> THEN it works. So, yes. It appears that something is wrong with the import.

I'm that not familiar with pyc.py, but it looks like it doesn't have a
way to add assembly references into the .exe. If there was a
/reference argument, it could then do the equivalent of
clr.AddReference in the stub .exe that it generates. Otherwise, you'll
have to do it the way you're doing it.

If you would like that feature, you should open an issue, and even
better, implement it :)

- Jeff
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to