aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2017-06-22 12:23:59 +1000
committerDylan Araps <[email protected]>2017-06-22 12:23:59 +1000
commit882aa08da8aa31ee8546aec641b576e27fef39b5 (patch)
tree94ef71164d30b883711187defbcfd64afe051bf9
parentGeneral: Don't hardcode devnull dir (diff)
downloadpywal-882aa08da8aa31ee8546aec641b576e27fef39b5.tar.xz
pywal-882aa08da8aa31ee8546aec641b576e27fef39b5.zip
General: Cleanup
-rwxr-xr-xwal4
1 files changed, 2 insertions, 2 deletions
diff --git a/wal b/wal
index e2bde3c..892ba25 100755
--- a/wal
+++ b/wal
@@ -127,14 +127,14 @@ def process_args(args):
def get_image(img):
"""Validate image input."""
- image = pathlib.Path(img)
-
# Check if the user has Imagemagick installed.
if not shutil.which("convert"):
print("error: imagemagick not found, exiting...")
print("error: wal requires imagemagick to function.")
exit(1)
+ image = pathlib.Path(img)
+
if image.is_file():
wal_img = image