🐛 in functions.py@get_resource

This commit is contained in:
Mathieu PATUREL
2017-03-18 14:39:17 +11:00
parent 05c471b5d9
commit 1542e5e898

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(resource) as fp: with open(os.path.join(sublime.packages_path(), '..', resource)) as fp:
return fp.read() return fp.read()
else: else:
return sublime.load_resource(resource) return sublime.load_resource(resource)