mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-25 17:33:09 +01:00
colors: Don't hardcode command to Windows
This commit is contained in:
parent
6b5e65fc42
commit
9bca288ce9
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user