Re: [IronPython] CreateScriptSourceFrom ... database?

2010-03-04 Thread Mark Grice
Dino, Thanks for the reply. Actually, I did have an error in the string, and I fixed that. But the real problem seems to be with the "Import" statement. I put my common methods in a file that I then import into the various Python script files. It makes sense that the script would error, since, as

[IronPython] CreateScriptSourceFrom ... database?

2010-03-01 Thread Mark Grice
ay of accomplishing this that is escaping me? Has anyone ever done anything similar? Thanks! -Mark Grice ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Using a C# class in IronPython

2010-02-17 Thread Mark Grice
I'm not sure if this helps, but I use a C# class in my IronPython, and it works fine. Class is defined using the shorthand get; set; ie: public class ScreenTags { public String appWindowName { get; set; } public String fieldName { get; set; } public bool isDataField {

Re: [IronPython] How can I exit from Python Script File?

2010-02-16 Thread Mark Grice
Michael Foord Wrote: >"That will throw a SystemExit exception. You can have exception handling >in your C# that catches this specific error." Doh! Yeah... should have checked that. I just didn't figure calling sys.Exit() was a code exception, so I thought it was something else I was doing wrong.

[IronPython] How can I exit from Python Script File?

2010-02-15 Thread Mark Grice
I am using IronPython within a C# .NET application. I have a class that the Python code uses, so I create a scope and set the variable, then execute the engine like this: private ScriptEngine scptEngine = null; private ScriptRuntime scptRuntime = null; private ScriptScope