From ef7f2b952e75026644b150da9727c65994e0f21c Mon Sep 17 00:00:00 2001 From: Christophe Mayet Date: Sun, 21 Aug 2016 20:13:23 +0200 Subject: [PATCH 1/2] line.py Takes care of a new setting variable that will allow to append it to the convert_path, if not empty --- line.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/line.py b/line.py index 71df9de..365e258 100644 --- a/line.py +++ b/line.py @@ -305,6 +305,8 @@ def create_icon(self): "/usr/bin" ] + convert_name_setting = self.settings.get("convert_name") + if ( platform.system()=="Windows"): delimiter = ";" convert_name = "convert.exe" @@ -312,6 +314,9 @@ def create_icon(self): delimiter = ":" convert_name = "convert" + if convert_name_setting: + convert_name = convert_name_setting + paths.extend(glob.glob('/usr/local/Cellar/imagemagick/*/bin')) paths.extend(os.environ['PATH'].split(delimiter)) From 5b731ba478a14fe6bc22c39cabd6f256e9f018ec Mon Sep 17 00:00:00 2001 From: Christophe Mayet Date: Sun, 21 Aug 2016 20:21:54 +0200 Subject: [PATCH 2/2] Added a "convert_name" variable to the settings. Commented by default. --- GutterColor.sublime-settings | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/GutterColor.sublime-settings b/GutterColor.sublime-settings index 18c81f0..07365c4 100644 --- a/GutterColor.sublime-settings +++ b/GutterColor.sublime-settings @@ -4,6 +4,16 @@ * The location of the ImageMagic convert script. */ "convert_path" : "/usr/bin/convert", + + /* + * The name of the ImageMagic convert binary file. + */ + /* + // Default for Unix system + "convert_name" : "convert", + // Default for Windows system + "convert_name" : "convert.exe", + */ /* * The syntax for which to run GutterColor.