On 11 feb. 2013, at 21:25, "Chip G." <[email protected]> wrote:
> I'm trying to learn Python. I have a book that is helping me along. I'd like
> to use BBEdit as my editor, but I'm having some issues. Part of this is an
> Apple/Fink thing. Part of the problem is that the version of python get if I
> run using 'python' is old (v2.7.1). If I force paths I can get v2.7.3 or
> v3.2.3. As near as I can tell, BBEdit uses the version as if I typed 'python'
> which doesn't work properly with the code in the book. Even if I download the
> authors copy directly. So I'm trying to find a way to force BBEdit to use a
> specific version 2.7.3 or 3.2.3 vice the 2.7.1 it keeps preferring. Any ideas?
What's the first line of your script?
If python 2.7.1 rejects the code, then I assume that the code is written for
python 3 (which is a sensible version to learn these days).
You can try to set the first line to:
#!/usr/bin/env python3
If that doesn't work, try to be more specific (open a terminal, and see which
versions of python are available, typing python and pressing the tab-key should
provide some options).
As a last resort, you could use the full path to python:
#!/usr/local/bin/python3
I'm sure others will provide the correct method for getting BBEdit to recognize
your scripts and finding the appropriate interpreter.
Maarten
--
--
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.