On 2013-02-11 at 2:31 PM, [email protected] (Chip G.) wrote:

OK, a variation on this worked. When I changed it to a legitimate path on my system it worked.

#!/sw/bin/python3.2

Now that's working. But since the examples I had from the author didn't include those, I wonder why I can't get it to work without.

I'm not sure what you mean by working "without", but there's a key thing here that I hope you get.

That first line starting the #! should have a valid path to the interpeter you want to execute the file with. It's not the path of the script file itself, which I think you said in an earlier post.

If this isn't familiar, search Wikipedia or somewhere for "shebang line".

Study what Maaerten said; and I concur with Herbert's guess about why your script worked with 'sw/bin/python3.2' as the shebang path. Lee gave you the way to find the paths to ALL of your Python installs.

If you wanted, by the way, to test your script in different versions of Python, you can stack up several shebang lines, and change which one is on the top line to see how the script performs with your different versions. You could even use BBEdit's "Move Line Up" command to quickly make the change.

HTH.




Best Regards,

  - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
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>

--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to