Using python in textmate

2022-02-08
1 min read

Using python in textmate.

Python in TextMate 2

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
Avatar
Kumar Aniket Economist. Teacher at heart. Curious about the world.

Series of Posts