|
From: Kevin A. <al...@se...> - 2002-02-25 19:13:24
|
First of all, I feel sort of stupid for not doing this a long time ago. Python has a -i command-line option to launch a script with the interpreter. If you have a script with a syntax error or a module can't be imported or any other reason that keeps the script from starting then you are left in the interpreter with an error message rather than having the console disappear on you. So, I added a "Run with interpreter" menu item to the File menu in the resourceEditor. If you try the "Run" menu item (Ctrl+R) and your program doesn't run, then just "Run with interpreter" (Ctrl+Shift+R) and when the script fails you'll be left in the Python interpreter. Type Ctrl+Z and then the return key to exit the interpreter when you're done. Please report any problems to the list. Thanks to Neil Hodgson for sending me his code which helped me look in the right direction. ka |