[IronPython] Importing .py files embedded as resources (from Silverlight)

Thibaut Barrère thibaut.barrere at gmail.com
Fri Jun 19 09:37:14 CEST 2009


Hello,
this is my first post here, so hi!

I'm currently porting some IronPython library I'd like to use from a C# or
IronRuby Silverlight app. For that purpose, I'm creating a Silverlight C#
library which embeds all the required .py files and try to compile/execute
them at runtime.

Is there a built-in way of telling the IronPython engine that some resources
are embedded in the dll ? Maybe some hooks to detect imports and return the
stream of content for a given .py file ?

The IronPython library has multiple subfolders on several levels, for
increased fun.

Should I iterate over all the available files and execute them in the same
scope ?

Thanks for any insight when dealing with that kind of scenario,

cheers,

-- Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090619/61aca888/attachment.html>


More information about the Ironpython-users mailing list