I'm having some trouble configuring BBEdit's Find in Reference command to work with Python keywords. Here's my set up:
- Leopard's default Python 2.5.1 is in /usr/bin. - Python 2.6.1 from python.org is installed at /Library/Frameworks/ Python.framework/Versions/2.6/bin/python with a symbolic link to /usr/ local/bin (which is recommended in the BBEdit User Manual, page 328). - My PATH is set to use Python 2.6.1. - I have Python documentation installed at ~/Documents/python-2.6.2- docs-html (the most recent 2.x version available) - The PYTHONDOCS variable in my environment.plist is set to ~/ Documentation/python-2.6.2-docs-html (per page 328 of the BBEdit User Manual) If I run "pydoc print" (using 2.6.1) from Terminal, I get the expected help output on the print statement; everything looks good. It seems the MacPython 2.6.1 distribution also installs its own copy of the keyword documentation because this works even without the PYTHONDOCS variable in my environment.plist and Python docs in my ~/Documents folder. But when I use BBEdit's Find in Reference command on the "print" keyword, I get the following error: > Sorry, topic and keyword documentation is not available because the > Python > HTML documentation files could not be found. If you have installed > them, > please set the environment variable PYTHONDOCS to indicate their > location. Why can't BBEdit's pydoc lookup find the keyword documentation? Shouldn't it use the 2.6.1 version in my PATH? That seems to work fine from Terminal. Also, I noticed that with my shebang statement set to "#!/usr/local/ bin/python", a call to "print sys.version" returns 2.6.1. But with my shebang statement set to "#!/usr/bin/env python", the same call to "print sys.version" returns 2.5.1. Shouldn't they both return 2.6.1? Any help would be greatly appreciated! -Dennis --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
