Hi everyone, I have 3 installed versions of python on my Mac. How to tell TextMate to launch specified one on Command-R? Thanks.
On Feb 14, 2011, at 1:52 PM, Kaster Might wrote:
I have 3 installed versions of python on my Mac. How to tell TextMate to launch specified one on Command-R?
Set a variable named TM_PYTHON and point it to the binary of your choice (such as /usr/bin/python). This can be set globally in TextMate’s advanced preferences, or it can be set just for one project (using the info button in the project drawer).
Can't you do that in the file?
e.g. #!/usr/bin/python2.6.1 #or whatever the version you want
Does python have a USE keyword (as in Perl) to change settings?
I don't code in Python, so I am guessing.
On Feb 14, 2011, at 11:19 AM, Rob McBroom wrote:
On Feb 14, 2011, at 1:52 PM, Kaster Might wrote:
I have 3 installed versions of python on my Mac. How to tell TextMate to launch specified one on Command-R?
Set a variable named TM_PYTHON and point it to the binary of your choice (such as /usr/bin/python). This can be set globally in TextMate’s advanced preferences, or it can be set just for one project (using the info button in the project drawer).
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I believe TextMate doesn't follow the shebang for Command-R, only whatever you've set in TM_[LANGUAGE].
Walter
On Feb 14, 2011, at 2:43 PM, Mark Jackson wrote:
Can't you do that in the file?
e.g. #!/usr/bin/python2.6.1 #or whatever the version you want
Does python have a USE keyword (as in Perl) to change settings?
I don't code in Python, so I am guessing.
On Feb 14, 2011, at 11:19 AM, Rob McBroom wrote:
On Feb 14, 2011, at 1:52 PM, Kaster Might wrote:
I have 3 installed versions of python on my Mac. How to tell TextMate to launch specified one on Command-R?
Set a variable named TM_PYTHON and point it to the binary of your choice (such as /usr/bin/python). This can be set globally in TextMate’s advanced preferences, or it can be set just for one project (using the info button in the project drawer).
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I didn't even use TM_PYTHON, just changed *TextMate::Executor.run(ENV["TM_PYTHON"] || "python"* to *TextMate::Executor.run(ENV["TM_PYTHON"] || "python2.7"*
On Mon, 14 Feb 2011 14:54:21 -0500, Walter Lee Davis wrote:
I believe TextMate doesn't follow the shebang for Command-R, only whatever you've set in TM_[LANGUAGE].
Walter
On Feb 14, 2011, at 2:43 PM, Mark Jackson wrote:
Can't you do that in the file?
e.g. #!/usr/bin/python2.6.1 #or whatever the version you want
Does python have a USE keyword (as in Perl) to change settings?
I don't code in Python, so I am guessing.
On Feb 14, 2011, at 11:19 AM, Rob McBroom wrote:
On Feb 14, 2011, at 1:52 PM, Kaster Might wrote:
I have 3 installed versions of python on my Mac. How to tell TextMate to launch specified one on Command-R?
Set a variable named TM_PYTHON and point it to the binary of your choice (such as /usr/bin/python). This can be set globally in TextMate’s advanced preferences, or it can be set just for one project (using the info button in the project drawer).
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Thanks for reply Mark, but shebang is not supported through TextMate. Anyway, I could solve my problem by using ``python2.7'' instead of just ``python'' in bundle configuration. Thanks everyone for advices.
On 2/14/11 12:43 PM Mark Jackson wrote:
Can't you do that in the file?
e.g. #!/usr/bin/python2.6.1 #or whatever the version you want
Does python have a USE keyword (as in Perl) to change settings?
I don't code in Python, so I am guessing.
On Feb 14, 2011, at 11:19 AM, Rob McBroom wrote:
On Feb 14, 2011, at 1:52 PM, Kaster Might wrote:
I have 3 installed versions of python on my Mac. How to tell TextMate to launch specified one on Command-R?
Set a variable named TM_PYTHON and point it to the binary of your choice (such as /usr/bin/python). This can be set globally in TextMate’s advanced preferences, or it can be set just for one project (using the info button in the project drawer).
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I'm puzzled why you guys think that the shebang is not supported? It clearly works for me. Just tried to put a bare python in the shebang that does not have all the libraries that I import, and promptly it complained about the missing ones. So it DOES follow the path given in the shebang for the Python interpreter.
Michael
On 2011-02-14 20:58:52 +0000, Kaster Might said:
Thanks for reply Mark, but shebang is not supported through TextMate. Anyway, I could solve my problem by using ``python2.7'' instead of just ``python'' in bundle configuration. Thanks everyone for advices.
On 2/14/11 12:43 PM Mark Jackson wrote: Can't you do that in the file?
e.g. #!/usr/bin/python2.6.1 #or whatever the version you want
Does python have a USE keyword (as in Perl) to change settings?
I don't code in Python, so I am guessing.
On Feb 14, 2011, at 11:19 AM, Rob McBroom wrote: On Feb 14, 2011, at 1:52 PM, Kaster Might wrote: I have 3 installed versions of python on my Mac. How to tell TextMate to launch specified one on Command-R?
Set a variable named TM_PYTHON and point it to the binary of your choice (such as /usr/bin/python). This can be set globally in TextMate’s advanced preferences, or it can be set just for one project (using the info button in the project drawer).
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- Kaster Might
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate