« Return to Thread: Importing .py files embedded as resources (from Silverlight)

Importing .py files embedded as resources (from Silverlight)

by thbar :: Rate this Message:

Reply to Author | View in Thread

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

_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

 « Return to Thread: Importing .py files embedded as resources (from Silverlight)