[IronPython] problem accessing/import System.IO.Packaging using IronPython

Sanghyeon Seo sanxiyn at gmail.com
Thu Nov 29 01:58:03 CET 2007


2007/11/29, Raymond Yee <raymondyee at mashupguide.net>:
> # I can't figure out how to load System.IO.Packaging -- which is part of
> .NET 3.0
> #
> http://msdn2.microsoft.com/en-us/library/system.io.packaging.package.aspx
> is part of .NET 3.0

The MSDN page you linked says:

Package Class
Namespace: System.IO.Packaging
Assembly: WindowsBase

This should work:

import clr
clr.AddReference('WindowsBase')
from System.IO.Packaging import Package

So, when you read MSDN, pay attention to which assembly the class is from.

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list