colors: Don't hardcode command to Windows

This commit is contained in:
Dylan Araps 2017-08-25 20:12:17 +10:00
parent 6b5e65fc42
commit 9bca288ce9

View File

@ -13,7 +13,7 @@ from . import util
def imagemagick(color_count, img):
"""Call Imagemagick to generate a scheme."""
if OS == "Windows":
if shutil.which("magick"):
magick_command = ["magick", "convert"]
else:
magick_command = ["convert"]