depot/third_party/nixpkgs/pkgs/development/python-modules/pywal/convert.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

21 lines
609 B
Diff

diff --git a/pywal/backends/wal.py b/pywal/backends/wal.py
index a75fdc5..4339680 100644
--- a/pywal/backends/wal.py
+++ b/pywal/backends/wal.py
@@ -21,15 +21,7 @@ def imagemagick(color_count, img, magick_command):
def has_im():
"""Check to see if the user has im installed."""
- if shutil.which("magick"):
- return ["magick", "convert"]
-
- if shutil.which("convert"):
- return ["convert"]
-
- logging.error("Imagemagick wasn't found on your system.")
- logging.error("Try another backend. (wal --backend)")
- sys.exit(1)
+ return ["@convert@"]
def gen_colors(img):