[TxMt] TM_PYTHON ignored?

K.-Michael Aye kmichael.aye at gmail.com
Thu Feb 7 20:01:53 UTC 2013


Greetings,

it seem that my TM_PYTHON variable is being ignored.
I have it set to
/Library/Frameworks/Python.framework/Versions/Current/bin/python

which executes like so:

============
()[maye at alpha1 ~]$ 
/Library/Frameworks/Python.framework/Versions/Current/bin/python
Enthought Python Distribution -- www.enthought.com
Version: 7.3-2 (32-bit)

Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "credits", "demo" or "enthought" for more information.
>>>
============

and then I wrote this little test script:

======
#!/usr/bin/env python
import sys
print sys.version
======

which, when executed via Cmd-R, returns:

====
2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
====

I also cross-checked what happens when I use env in the Terminal:

=====
()[maye at alpha1 ~]$ env python -c "import sys;print sys.version"
2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)]
()[maye at alpha1 ~]$
====


So, it works in the Terminal fine, what do I have to do so that 
Textmate's Cmd-R picks up the right interpreter, WITHOUT changing the 
shebang (because the env-shebang is so common for online sources, it 
would be a major pain to always have to remove or change it) ?

Best regards,
Michael

PS.: Running TM2 9373 on Mac OSX 10.8.2








More information about the textmate mailing list