mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-21 08:41:00 +02:00
General: Cleanup
This commit is contained in:
parent
f59eb5cbdd
commit
882aa08da8
4
wal
4
wal
@ -127,14 +127,14 @@ def process_args(args):
|
|||||||
|
|
||||||
def get_image(img):
|
def get_image(img):
|
||||||
"""Validate image input."""
|
"""Validate image input."""
|
||||||
image = pathlib.Path(img)
|
|
||||||
|
|
||||||
# Check if the user has Imagemagick installed.
|
# Check if the user has Imagemagick installed.
|
||||||
if not shutil.which("convert"):
|
if not shutil.which("convert"):
|
||||||
print("error: imagemagick not found, exiting...")
|
print("error: imagemagick not found, exiting...")
|
||||||
print("error: wal requires imagemagick to function.")
|
print("error: wal requires imagemagick to function.")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
image = pathlib.Path(img)
|
||||||
|
|
||||||
if image.is_file():
|
if image.is_file():
|
||||||
wal_img = image
|
wal_img = image
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user