I’m currently learning Python, and as a new Python programmer I’ve opted to go with Python 3, that said I want to keep the standard Python 2.6 install available, just in case. As you may be aware I’m also a Mac user and therefore a TextMate user. On 13 Dec 11, the first public alpha of TextMate 2.0 was made available to those of us who have both a TextMate license and an Intel Mac, which I’d guess must encompass a LOT of Mac developers?
Anyway, one of the things they’ve got rid of in TextMate 2.0 are the old project files, I was using these to direct TextMate to my Python 3 install (and yes, I am aware that there are other ways to do this). However, it seems we can now use a Git Style Configuration (erm, okay I’ve heard of Git and should probably be using it, but I’m still using Subversion!). Anyway, it seems that this means we stick a .tm_properties file in the root directory of our project. So to achieve the same effect as my old TextMate Project File I created a .tm_properties file containing the following line of code:
1 | TM_PYTHON = "/usr/local/bin/python3.2" |
and hey, presto I can run Python 3 code from within TextMate 2.0.




