Skip to content

Commit 8b42c30

Browse files
committed
Fix Python 2/Sublime Text 2 support
7348deb prints out a debugging message if the OS isn't OS X. However, we used the Python 3-style `print()` command to do so. Since Sublime Text 2 uses Python 2, we add a bevy of `from __future__ import...` at the top of the Python file, so that we get Python 3 features in Python 2. This should hopefully fix Python 2/Sublime Text 2 problems, but it is untested. Feedback appreciated.
1 parent d0d7d96 commit 8b42c30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

FixPath.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import division, absolute_import, print_function, unicode_literals
12
import sublime, sublime_plugin
23
import re, platform
34
from os import environ

0 commit comments

Comments
 (0)