Skip to content

Commit a74e54f

Browse files
committed
Hardcode path to Python executable
Before this change some commands would not work if `python` linked to a recent version of Python (3.x) instead of the legacy version of Python provided by Apple (2.x).
1 parent 0e532bb commit a74e54f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Commands/Check Python Syntax.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>command</key>
1212
<string>#!/bin/bash
1313
14-
TPY=${TM_PYTHON:-python}
14+
TPY=${TM_PYTHON:-"/usr/bin/python"}
1515
1616
"$TPY" "$TM_BUNDLE_SUPPORT/bin/pycheckmate.py" "$TM_FILEPATH"</string>
1717
<key>fileCaptureRegister</key>

Commands/Documentation for Current Word.tmCommand

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export TM_FIRST_LINE="$first_line"
1616
export PYTHONPATH="$TM_BUNDLE_SUPPORT/DocMate"
1717
export PYTHONPATH="$TM_SUPPORT_PATH/lib:$PYTHONPATH"
1818
19-
/usr/bin/env python -S - &lt;&lt;PYTHON
19+
/usr/bin/python -S - &lt;&lt;PYTHON
2020
# coding: UTF-8
2121
import sys
2222
from sys import exit

Commands/Documentation in Browser.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>command</key>
88
<string>#!/bin/bash
99
10-
TPY=${TM_PYTHON:-python}
10+
TPY=${TM_PYTHON:-"/usr/bin/python"}
1111
1212
echo '&lt;html&gt;&lt;body&gt;'
1313
"$TPY" "${TM_BUNDLE_SUPPORT}/browse_pydocs.py"

0 commit comments

Comments
 (0)