[IronPython] Newbie questions & comments
Martin.Maly at microsoft.com
Sun Dec 4 22:36:51 PST 2005
> Edward K. Ream Wrote:
> Something strange is happening when I do this. If I invoke
> IronPythonConsole interactively, I can import winforms. But
> something different happens when I execute a file. For
> example, suppose ironPythonTest.py contains:
> print 'Hello Iron Python!!'
> import winforms
Are you trying to import the "winforms.py" that is part of the tutorial?
Make sure that when you run the IronPython console, you have the tutorial
>>> import sys
By default, the sys.path includes current directory and the "bin\Lib" directory. You can add the tutorial directory into the sys.path:
Or run the console from the tutorial directory.
> Possible bug 2: This generates the XP dialog:
> 'IronPythonConsole.exe has encountered a problem and needs to
> close. We are sorry for the inconvenience.'
Currently IronPython passes the exceptions encountered to the OS which results in the dialog box. To fix this is on our todo list.
I hope this helps
More information about the users