Re: [Ironpython-users] Setting __name__ to __main__

2011-11-23 Thread Dino Viehland
That's the 1.1 way of doing it, the 2.x way is probably hanging off of PythonCompilerOptions (I'd look it up but I'm on my phone). From: Doug Blank Sent: 11/23/2011 10:47 AM To: Dino Viehland Cc: Jeff Hardy; Markus Schaber; ironpython-users@python.org Subject: Re:

Re: [Ironpython-users] Setting __name__ to __main__

2011-11-23 Thread Doug Blank
Perhaps this is what you are thinking of: PythonEngine engine = new PythonEngine(pyEngineOptions); engine.DefaultModule = engine.CreateModule("__main__", true); From: http://ironpython.codeplex.com/workitem/2537 -Doug On Wed, Nov 23, 2011 at 1:13 PM, Dino Viehland wrote: > I think there's a M

Re: [Ironpython-users] Setting __name__ to __main__

2011-11-23 Thread Dino Viehland
I think there's a ModuleOptions flag which controls it but don't remember how to flow it in off the top of my head From: Jeff Hardy Sent: 11/23/2011 7:31 AM To: Markus Schaber Cc: ironpython-users@python.org Subject: Re: [Ironpython-users] Setting __name__ to __mai

Re: [Ironpython-users] Setting __name__ to __main__

2011-11-23 Thread Jeff Hardy
Your best bet is to look at the source to ipy.exe, which has to do the same thing. - Jeff On Mon, Nov 21, 2011 at 9:21 AM, Markus Schaber wrote: > Hi, > > I want to set the __name__ variable to "__main__" in the script I execute. > However, it seems that the __name__ variable always is overridd

[Ironpython-users] IronPython, Daily Digest 11/22/2011

2011-11-23 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Support Windows 8 'Metro' 2. [New issue] Bug with Log() function 3. [New comment] Bug with Log() function -- ISSUES 1. [New com