[IronPython] DLR Hosting, Access to .NET Types
David Seruyange
idmkid at yahoo.com
Thu Apr 17 20:33:20 PDT 2008
Hello, thanks much to Dino on my last message. After redirecting output and error, I now see the error I was getting explained a little more in depth. I'm executing a script in order to load it as a module. The code is something like this:
string p = Path.Combine("path to script");
ScriptScope newScope = engine.Runtime.ExecuteFile(p);
Are all framework types accessible from a hosted engine? While the module loads fine using the above code, a reference to the StringBuilder (which works fine when executing a file that references the module) produces an error "name StringBuilder not defined." (The module does have a "from System.Text import *") -
Thanks and regards,
David
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080417/4f847d85/attachment.htm
More information about the Users
mailing list