[Pythonmac-SIG] Re: MacPython & BBEdit 6.0.1
John A. Miller
jmillr@umich.edu
Mon, 13 Nov 2000 17:55:09 -0500 (EST)
Thanks for the help in getting started. I now have the "Run as Python"
extension in the BBEdit 6 Plug-Ins folder, and have set .py for TCL syntax
coloring (it IS in the BBEdit 6 distribution). However, the
"PythonSlave.py" script seems not to do the right thing (besides the typo:
"Types" should be "types" in line 21): Starting at the beginning with the
"checktext.py" script in the 'example0' folder, if I simply double-click
this script, it does the right thing. If, however, I open the script in
BBEdit and choose "Run as Python" under the Tools menu, the
PythonInterpreter.out window simply gives the following message:
PythonSlave 0.1.3 ready.
--- executing "checktest.py" ---
--- done ---
No dialog box, nothing. If I go on to the "dnslookup-1.py" script in the
"example1" folder and double-click, it does the right thing. However,
opening it up in BBEdit and choosing the "Run as Python" command generates
an error dialog box "Cannot find dnslookup-1.rsrc" which is also located
in the "example1" folder. The following is generated in the
PythonInterpreter.out window:
--- executing "dnslookup-1.py" ---
Traceback (most recent call last):
File "Moire:Programming:Python 2.0:Mac:Contrib:BBPy:PythonSlave.py",
line 90, in MyExec
exec stuff in {}
File "<string>", line 60, in ?
File "<string>", line 26, in main
SystemExit: 1
--- done ---
So, this is more than I can deal with by myself. Any ideas what needs to
be done to get "Run as Python" extension to do the right thing?
John Miller