Hmm.

If I create a test.py file, with the only contents being help(), I get Welcome 
to Python 3.7's help utility!

If I choose the scripts menu item and run the Hello World.py, with the addition 
of help() I get 2.7. But I notice that this file has:
#!/usr/local/bin/python

I tried editing it to be #!/usr/local/bin/python3 and that gives me 3.7

So it seems the shebang is respected if you put the path to a binary in it.

Oh, no.. if I do the same with the test.py script it is always 3.7 no matter 
what I put in the shebang line.

Back to you!

Cheers,

Dave

> On 5-June-2019, at 3:57 PM, jjon <[email protected]> wrote:
> 
> I'm missing something obvious: Running python scripts from within BBedit 
> 12.6.4 doesn't seem to respect anything I put in the shebang line. BBedit 
> runs python3.7 no matter what. The entire contents of p3test.py is
> help()
> 
> if I run it with command R the log file I get reads:
> Welcome to Python 3.7's help utility!
> ... etc.
> 
> if I add shebang:
> #!/usr/bin/env python2.7
> help()
> 
> I get the same thing. No matter what I put in the shebang line, BBedit runs 
> python 3.7
> 
> What am I missing?
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://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].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/bbedit.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/0cbc0c1c-efdb-4e39-a23f-c35eb8d1635f%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/D2AF32D8-014F-4606-87CC-B8953F849D16%40gmail.com.

Reply via email to