[IronPython] Preloading An Engine Instance With References

2009-08-09 Thread Jesse Wiles
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 Users@lists.ironpython.com http://lists

[IronPython] How to set __name__ for scriptengine instance?

2009-07-17 Thread Jesse Wiles
ollection symbols = new SymbolDictionary();       symbols[Symbols.Name] = "__main__";       ScriptScope scope = engine.CreateScope(symbols);       scope.SetVariable("MyFooHash", new Dictionary());       engine.ExecuteFile(this.mPathTextBox.Text, scope); Thanks, Jesse Wiles _

Re: [IronPython] Is any one use IronPython in your project?

2006-11-23 Thread Jesse Wiles
We are currently using IronPython as a hook for scripting our .NET application. This is extremely valuable since, to my knowledge, there is no other comparable facility for this purpose in .NET. On 2006-11-23 15:25:04 -0500 Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Ken Manheimer wrote: > >>

[IronPython] ipy support in msxsl:script blocks

2006-09-05 Thread Jesse Wiles
Hi, Can I script XSL extension objects using Iron Python? Jesse Wiles ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] How to Use site.py

2006-09-03 Thread Jesse Wiles
(VarScriptsDir, "configuration.xml"); EngineModule VarMainModule = VarEngine.CreateModule("__main__", ParamGlobals, true); VarEngine.ExecuteFile(ParamScriptPath, VarMainModule); } and here's the contents of my Lib/site.py: import s

Re: [IronPython] if __name__ == '__main__' broken in RC2?

2006-08-30 Thread Jesse Wiles
e never create a __main__ module for you).  How is it not evaluating properly?  Are we thinking we’re in main or not in main?      From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jesse Wiles Sent: Wednesday, August 30, 2006 7:51 AM To: Discussion of IronPython Subject:

[IronPython] if __name__ == '__main__' broken in RC2?

2006-08-30 Thread Jesse Wiles
Hi, I'm running into a problem where if __name__ == '__main__' is not evaluating properly when using PythonEngine from my assembly.  Is this a known issue? Thanks, Jesse Wiles ___ users mailing list users@lists.iron