Using python in textmate.
TextMate will parse the first line of your Python script for a shebang sequence.
...
If found, it will attempt to call that interpreter when you run your script. I have installed Python 3 using homebrew, so the binary is in my /usr/local/bin folder. Lets set up a simple script and test this:#!/usr/local/bin/python3
print('hello, hypepat!')
.tm_properties
TM_PYTHON = "${CWD}/venv/bin/python"
excludeDirectoriesInBrowser = "{__pycache__,include,lib,bin}"
includeFilesInBrowser = "{.gitignore}"
[ source.python ]
softTabs = true
tabSize = 4