You can load assemblies to the runtime via ScriptRuntime.LoadAssembly.

Tomas

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Jesse Wiles
Sent: Sunday, August 09, 2009 10:17 PM
To: [email protected]
Subject: [IronPython] Preloading An Engine Instance With References

Hi,

I would like to preload an engine instance with references to .NET namespaces, 
such that using clr.AddReference in a script is unnecessary.  To be simple, 
I've created an engine instance with all the scope variables that I want, but 
within a script executed by the instance, I am finding that 
clr.AddReference('System') is required to import System.  Can I handle the 
adding of the reference in the construction of the engine instance and if so, 
how?

Thanks,
Jesse Wiles
_______________________________________________
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

Reply via email to