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

2009-06-19 Thread Thibaut Barrère
> >Use the Hosting API from Ruby. I have a “python.rb” lying around > that I usually use which demonstrates what to do: > http://gist.github.com/132558 (this one is for Silverlight, line 10 will > have to be slightly changed for the Desktop). > I used that and after a bit of tweaking I got

Re: [IronPython] IronPython 2.6 CodePlex Source Update

2009-06-19 Thread Seo Sanghyeon
2009/6/20 : > Once this is in I’ll be updating Igor’s prototype for sys.settrace support > for IronPython and adding that. This is exciting. -- Seo Sanghyeon ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/u

[IronPython] IronPython 2.6 CodePlex Source Update

2009-06-19 Thread merllab
This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/55104. ADDED SOURCES $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Debug

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

2009-06-19 Thread Jimmy Schementi
You can execute Python code from Ruby in 2 ways: 1. Use the Hosting API from Ruby. I have a "python.rb" lying around that I usually use which demonstrates what to do: http://gist.github.com/132558 (this one is for Silverlight, line 10 will have to be slightly changed for the Desktop). 2

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

2009-06-19 Thread Thibaut Barrère
Hi Jimmy, > No special support; you'll have to iterate over all the files as resources, > get their contents, and do the following: > > var scope = scriptEngine.CreateScope(); > scriptEngine.CreateScriptSourceFromString(code).Execute(scope); > > Though, why not just put the python files in the XAP

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

2009-06-19 Thread Jimmy Schementi
No special support; you'll have to iterate over all the files as resources, get their contents, and do the following: var scope = scriptEngine.CreateScope(); scriptEngine.CreateScriptSourceFromString(code).Execute(scope); Though, why not just put the python files in the XAP? Then importing will

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

2009-06-19 Thread Thibaut Barrère
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 bui