[Ironpython-users] Using pyc.py get import error on minimal WPF app

Jeff Hardy jdhardy at gmail.com
Tue Jul 5 20:04:55 CEST 2011


On Tue, Jul 5, 2011 at 10:21 AM, Chaim Krause <chaim at 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


More information about the Ironpython-users mailing list