[IronPython] Silverlight, cannot import os module?

Dan Eloff dan.eloff at gmail.com
Thu Apr 17 04:58:47 CEST 2008

I've added os.py and ntpath.py to my .xap, but the trouble is os uses
sys.builtin_module_names to detect platform, and there is no platform
specific module in there for silverlight.

Maybe it is os.py (using CPython 2.5 version) that needs to be changed
to support a silverlight platform? Or to stop throwing when no
platform detected?

Or maybe IronPython should have a minimal or empty nt builtin module
for silverlight, since probably that's the closest to the desired

Surely somebody else has come across this? I'm going to hack os.py for
now to allow me to continue past this.


More information about the Ironpython-users mailing list