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

2010-05-06 Thread Thomas Gagne
That's what happens when you try learning too many languages at once... It was IronRuby, and I meant to ask it in an IronRuby list. Whoops! ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

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

2010-05-06 Thread Thomas Gagne
My question is simpler, how do I exit a regular script? If ARGV.length != 1 puts "usage:" Process.exit end I get an error calling Process.exit (private member) Process.Exit (method does not exist) sys.Exit (undefined method 'sys' for main:Object) How do I quit my script? __

Re: [IronPython] How to get ToString() working, and questions about GetSysModule() and GetClrModule()

2009-09-21 Thread Thomas Gagne
x though we could look at adding an extension method like "scope.EnableClr()" or something along those lines that makes this simpler. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Thomas Gagne Sent: Monday,

[IronPython] How to get ToString() working, and questions about GetSysModule() and GetClrModule()

2009-09-21 Thread Thomas Gagne
We've hosted Python inside our C# application and all seems to work well. Recently, one of our programmers has asked to use ToString inside a python expression. I read online we need to import the "clr" to make that happen. The code for kicking it off looks like: _engine = Python.CreateEngi

Re: [IronPython] ipy.exe not found -- sorry, haven't programmed on windows since 90s

2009-04-16 Thread Thomas Gagne
Hurray! The Path is now working! Thanks for your help. ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] ipy.exe not found -- sorry, haven't programmed on windows since 90s

2009-04-16 Thread Thomas Gagne
.NET\\bin\\') clr.AddReference('ceTe.DynamicPDF.35') from ceTe.DynamicPDF import * from ceTe.DynamicPDF.PageElements import * document = Document() document.Author = "Thomas Gagne" document.Title = "Hello" page = Page(PageSize.Letter, PageOrientation.Portrait, 54.0)

[IronPython] ipy.exe not found -- sorry, haven't programmed on windows since 90s

2009-04-15 Thread Thomas Gagne
I apologize for the next several questions. I'm want to play with a .net library but don't want to doit in C# or VB. I prefer dynamic languages. Anyway, I have a few questions I'm struggling to find complete examples for. First, in my test directory inside either cmd or powershell, ipy.exe