On 1/28/08, Jon Crump wrote:

but if I try to import pydot from a script in a bbedit text window like this:

#!/usr/bin/python
import pydot

I found the key was to start my python files with:
#! /usr/local/bin/python


This calls the correct python in the correct locations for me. I've also added a .pth file to /Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-packages. In that file I've called out the directory where a bunch of local scripts (almost modules) are stored and those are loaded up fine as well.

I routinely call these python scripts from BBEdit.

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to