Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions GutterColor.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions line.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,18 @@ def create_icon(self):
"/usr/bin"
]

convert_name_setting = self.settings.get("convert_name")

if ( platform.system()=="Windows"):
delimiter = ";"
convert_name = "convert.exe"
else:
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))

Expand Down