Hi Srivatsn, That did the trick, thanks. -Jeff
On Thu, Jul 10, 2008 at 6:32 PM, Srivatsn Narayanan <[EMAIL PROTECTED]> wrote: > You will have to call LoadAssembly on your ScriptRuntime to load mscorlib.dll: > > scriptRuntime.LoadAssembly(typeof(string).Assembly) > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Hardy > Sent: Thursday, July 10, 2008 5:27 PM > To: Discussion of IronPython > Subject: [IronPython] "Cannot import name Enum" > > Hi all, > I'm hosting IronPython 2.0b3. When executing "from System import > Enum", I get the error "Cannot import name Enum ". It works fine when > executed from the console. Do I need to set up some references in the > hosting code to make this work? > > -Jeff > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
