Skip to content

Commit

Permalink
Only use plugin_dir in ST3
Browse files Browse the repository at this point in the history
This will prevent ST2 from using GitGutter-EDGE
but at least git gutter will work in ST2 until
I figure out a way to get __file__ to work correctly
  • Loading branch information
jisaacks committed May 30, 2014
1 parent f6aaac4 commit 7b79740
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git_gutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ def icon_path(self, icon_name):
icon_name = icon_name + "_arrow"

if int(sublime.version()) < 3014:
path = '..'
path = '../GitGutter'
extn = ''
else:
path = 'Packages'
path = 'Packages/' + self.plugin_dir()
extn = '.png'

return "/".join([path, self.plugin_dir(), 'icons', icon_name + extn])
return "/".join([path, 'icons', icon_name + extn])

def bind_icons(self, event, lines):
regions = self.lines_to_regions(lines)
Expand Down

0 comments on commit 7b79740

Please sign in to comment.