From 13b50d0a08f79842b99df789469ee19bf62cf2b3 Mon Sep 17 00:00:00 2001 From: zhibinr Date: Mon, 13 Jan 2014 22:38:42 +0800 Subject: [PATCH] fix #157 according to https://www.sublimetext.com/docs/3/api_reference.html load_resource(name) The name should be in the format Packages/Default/Main.sublime-menu. --- MarkdownPreview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MarkdownPreview.py b/MarkdownPreview.py index c060fccc..748ebf99 100644 --- a/MarkdownPreview.py +++ b/MarkdownPreview.py @@ -84,7 +84,7 @@ def load_resource(name): try: if is_ST3(): - filename = os.path.join('Packages', INSTALLED_DIRECTORY, name) + filename = '/'.join(['Packages', INSTALLED_DIRECTORY, name]) return sublime.load_resource(filename) else: filename = os.path.join(sublime.packages_path(), INSTALLED_DIRECTORY, name)