import sublime

from os import path


_plugin_name = "Git Conflict Resolver"
_icon_folder = path.join(_plugin_name, "gutter")
_icons = {
    "ours": "ours",
    "ancestor": "ancestor",
    "theirs": "theirs"
}


def get(group):
    base = ""
    extension = ""
    if int(sublime.version()) < 3000:
        base = path.join("..", _icon_folder)
    else:
        base = path.join("Packages", _icon_folder)
        extension = ".png"

    return path.join(base, _icons[group] + extension)

import sublime


_plugin_name = "Git Conflict Resolver"
_icon_folder = "/".join([_plugin_name, "gutter"])
_icons = {
    "ours": "ours",
    "ancestor": "ancestor",
    "theirs": "theirs"
}


def get(group):
    base = ""
    extension = ""
    if int(sublime.version()) < 3000:
        base = "/".join(["..", _icon_folder])
    else:
        base = "/".join(["Packages", _icon_folder])
        extension = ".png"

    return "/".join([base, _icons[group] + extension])

Fix sublime icon pathing by using "/" instead of os.path.join
Fix sublime icon pathing by using "/" instead of os.path.join

  import sublime
- 
- from os import path
  
  
  _plugin_name = "Git Conflict Resolver"
- _icon_folder = path.join(_plugin_name, "gutter")
+ _icon_folder = "/".join([_plugin_name, "gutter"])
  _icons = {
      "ours": "ours",
      "ancestor": "ancestor",
      "theirs": "theirs"
  }
  
  
  def get(group):
      base = ""
      extension = ""
      if int(sublime.version()) < 3000:
-         base = path.join("..", _icon_folder)
+         base = "/".join(["..", _icon_folder])
      else:
-         base = path.join("Packages", _icon_folder)
+         base = "/".join(["Packages", _icon_folder])
          extension = ".png"
  
-     return path.join(base, _icons[group] + extension)
+     return "/".join([base, _icons[group] + extension])
  
Fix sublime icon pathing by using "/" instead of os.path.join
## Code Before:
import sublime

from os import path


_plugin_name = "Git Conflict Resolver"
_icon_folder = path.join(_plugin_name, "gutter")
_icons = {
    "ours": "ours",
    "ancestor": "ancestor",
    "theirs": "theirs"
}


def get(group):
    base = ""
    extension = ""
    if int(sublime.version()) < 3000:
        base = path.join("..", _icon_folder)
    else:
        base = path.join("Packages", _icon_folder)
        extension = ".png"

    return path.join(base, _icons[group] + extension)

## Instruction:
Fix sublime icon pathing by using "/" instead of os.path.join
## Code After:
import sublime


_plugin_name = "Git Conflict Resolver"
_icon_folder = "/".join([_plugin_name, "gutter"])
_icons = {
    "ours": "ours",
    "ancestor": "ancestor",
    "theirs": "theirs"
}


def get(group):
    base = ""
    extension = ""
    if int(sublime.version()) < 3000:
        base = "/".join(["..", _icon_folder])
    else:
        base = "/".join(["Packages", _icon_folder])
        extension = ".png"

    return "/".join([base, _icons[group] + extension])
