The workaround that I use is execfile, i.e.
> IronPythonConsole
>>> execfile('foo.py')
This is exactly what python -i foo.py does for you.
-Jim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Jacobs
Sent: Tuesday, December 06, 2005 12:41 AM
To:
The wild rumpus has started! Many thanks for your help. The code samples
you suggested do indeed work.
> Thanks for this feedback, we'll think about how to make the examples
> clearer.
You are welcome. I am reminded of the scene in the book 'The right stuff'
where the test pilot can fly any
Hello Edward
> Edward K. Ream Wrote:
>
> Alas, winforms itself does not work properly when started
> inside my batch file. The window freezes. Here is the
> contents of my batch file:
>
> cd c:\prog\IronPython-0.9.5\Tutorial
> ..\bin\IronPythonConsole c:\prog\leoCVS\leo\test\ironPythonTest.py
> > Are you trying to import the "winforms.py" that is part of the tutorial?
> > [snip]
Running my batch file from the Tutorial directory does indeed make winforms
available. Thanks!
Alas, winforms itself does not work properly when started inside my batch
file. The window freezes. Here is th
Actually, Environment.CurrentDirectory does return current directory, not the
directory of the running assembly:
C:\Ip>ip
IronPython 0.9.5 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import System
>>> System.Environment.CurrentDirectory
'C:\\Ip'
>>> System.E
> /cygdrive/c/Program\ Files/IronPython-0.9.5/bin/IronPythonConsole.exe
IronPython 0.9.5 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys
>>> sys.path.append("c:/Python24/Lib")
Traceback (most recent call last):
SyntaxError: unexpected token bad characte
Hello,
my apologies for the false warning:
actually,
engine.AddToPath(Environment.CurrentDirectory);
will add the directory of the assembly we are running, not the current
directory.
I don't know if it is the expected behavior or not.
Thanks,
Stan.
Quoting Stanislas Pinte <[EMAIL PROTECT
The only thing I can think of is the locale difference
because the code that fails is trying to parse float point number. It is
actually a bug in the test code itself. We need to parse in a culture invariant
way (pass extra parameter to the Parse method).
Now that Keith corrected me and fou
I stand corrected. Thank you Keith! This should make life much easier.
Martin
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Keith J. Farmer
> Sent: Tuesday, December 06, 2005 2:06 AM
> To: Discussion of IronPython
> Subject: Re: [IronPython]
WinFx for .NET 2.0 RTM was released a couple weeks ago:
http://www.microsoft.com/downloads/details.aspx?familyid=E5376297-DA10-4
FC3-967D-38C96F767FC4&displaylang=en
-
Keith J. Farmer // [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Edward K. Ream wrote:
>> Shouldn't the -i option actually be stopping IronPython from exiting
>
> Right. That's why opening IronPython from a console is a workaround, not a
> fix.
Technically, a workaround should provide a temporary fix. Simply
stopping the console window from disappearing alt
Thank you very much
for your answers.
I rebuild IronPython
from source. It went very well and fast (it realy amazes me). And
IronPythonConsole works now, great!
I launched an
WinForms sample, it worked too.
However a crash
ocurrs when trying running avalon sample.
I run tests from the
12 matches
Mail list logo