mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-15 17:02:23 +02:00
colors: Don't hardcode command to Windows
This commit is contained in:
@ -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"]
|
||||
|
Reference in New Issue
Block a user