On 11/12/2012 21:39, vaboro wrote:

When I tried to run Python script from the Shebang menu I got the following message:

"usr/bin/python: No such file or directory"

I supposed BBEdit had tried to find Python executable in "usr/bin/python" directory.

I spent couple of hours trying to find out what's wrong with my environment variables, but couldn't get a clue until I specifically put the following line in the beginning of my Python script:

"#!/usr/bin/python"

And it worked.

It is so unusual to use "#!usr/bin/python" rather than "#!/usr/bin/python" that I’ve never seen it!

However, provided you have made your document a Python document or, I guess, added the .py suffix, the script in the front window will run from the run command without any shebang. Try doing that and running just this:

import os
print os.getcwd()

JD


--
--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to