mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-18 18:18:13 +02:00
General: Cleanup
This commit is contained in:
8
wal
8
wal
@@ -82,8 +82,8 @@ def process_args(args):
|
|||||||
"""Process args"""
|
"""Process args"""
|
||||||
# If no args were passed.
|
# If no args were passed.
|
||||||
if not len(sys.argv) > 1:
|
if not len(sys.argv) > 1:
|
||||||
print("error: wal needs to be given arguments to run.")
|
print("error: wal needs to be given arguments to run.\n"
|
||||||
print(" Refer to \"wal -h\" for more info.")
|
" Refer to \"wal -h\" for more info.")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
# -q
|
# -q
|
||||||
@@ -135,8 +135,8 @@ def get_image(img):
|
|||||||
"""Validate image input."""
|
"""Validate image input."""
|
||||||
# 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...\n"
|
||||||
print("error: wal requires imagemagick to function.")
|
"error: wal requires imagemagick to function.")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
image = pathlib.Path(img)
|
image = pathlib.Path(img)
|
||||||
|
Reference in New Issue
Block a user