From 8917eef29e0d9279a74c35e0a59b29c9a89fbbc7 Mon Sep 17 00:00:00 2001 From: dylan araps Date: Thu, 20 Jul 2017 12:58:33 +1000 Subject: api: Update example. --- examples/example.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/example.py') diff --git a/examples/example.py b/examples/example.py index 58de3ce..5e9cad2 100644 --- a/examples/example.py +++ b/examples/example.py @@ -1,10 +1,11 @@ -"""pywal api example.""" import pywal def main(): """Main function.""" - image = "/home/dylan/Pictures/Wallpapers/anVmEaA.jpg" + # Validate image and pick a random image if a + # directory is given below. + image = pywal.get_image("/home/dylan/Pictures/Wallpapers/") # Return a dict with the palette. colors = pywal.create_palette(image) -- cgit v1.2.3