Skip to content

Commit

Permalink
Fix Python 2/Sublime Text 2 support
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
int3h committed Oct 15, 2014
1 parent d0d7d96 commit 8b42c30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FixPath.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import division, absolute_import, print_function, unicode_literals
import sublime, sublime_plugin
import re, platform
from os import environ
Expand Down

0 comments on commit 8b42c30

Please sign in to comment.