Re: [IronPython] ScriptRuntime.ImportModule("foo") vs. import foo

2010-10-28 Thread Dino Viehland
Slide wrote: > Is it best to just Execute("import foo") to make it available then? Yeah, probably - at least I don't see a better way right now. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.

Re: [IronPython] ScriptRuntime.ImportModule("foo") vs. import foo

2010-10-28 Thread Slide
On Thu, Oct 28, 2010 at 4:14 PM, Dino Viehland wrote: > Slide wrote: >> I have something like the following code: >> >> ScriptEngine engine = Python.CreateEngine(); ScriptScope scope = >> engine.CreateScope(); >> >> engine.Runtime.LoadAssembly(Assembly.GetExecutingAssembly()); // holds >> the name

Re: [IronPython] ScriptRuntime.ImportModule("foo") vs. import foo

2010-10-28 Thread Dino Viehland
Slide wrote: > I have something like the following code: > > ScriptEngine engine = Python.CreateEngine(); ScriptScope scope = > engine.CreateScope(); > > engine.Runtime.LoadAssembly(Assembly.GetExecutingAssembly()); // holds > the namespace foo > > // the following line throws an exception > eng