Thanks for comment. I made the doc with just the two lines a Python doc. Saved it with .py extension. Ran it with the 'Run' command from the #! menu:
Couldn't spawn sub-process. Exec failed. (application error code: 13501) Works with explicit shebang in the doc though. I think I should have sent the word to Patrick Woolsey from the support team in the first place. среда, 12 декабря 2012 г., 1:06:58 UTC+3 пользователь eremita написал: > > 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 [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 feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
