This commit is contained in:
Alex R
2017-09-17 21:32:57 +03:00
committed by GitHub
parent 41c28e2b24
commit c334c49592

View File

@ -133,7 +133,7 @@ def get_style(color_scheme):
def get_resource(resource): def get_resource(resource):
if os.path.exists(os.path.join(sublime.packages_path(), '..', resource)): if os.path.exists(os.path.join(sublime.packages_path(), '..', resource)):
with open(os.path.join(sublime.packages_path(), '..', resource)) as fp: with open(os.path.join(sublime.packages_path(), '..', resource), encoding='utf-8') as fp:
return fp.read() return fp.read()
else: else:
return sublime.load_resource(resource) return sublime.load_resource(resource)