From ee2367d44b8491ae8186a9510c51453ff3d33cda Mon Sep 17 00:00:00 2001 From: Gijs Date: Sat, 8 May 2021 17:31:16 +0200 Subject: [PATCH] Forgot image.py. --- asciiWriter/examples/image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/asciiWriter/examples/image.py b/asciiWriter/examples/image.py index 5faa389..57d9e65 100644 --- a/asciiWriter/examples/image.py +++ b/asciiWriter/examples/image.py @@ -9,11 +9,13 @@ from asciiWriter.patterns import image from asciiWriter.utils import make_lines, visit, print_lines from asciiWriter.marks import single, space +from os.path import join, dirname + width = 75 height = 75 # Where to find the image -image_path = 'images/blobs-small.png' +image_path = join(dirname(__file__), 'data', 'blobs-small.png') # Construct the pattern image_pattern = image(image_path) # Set the marker, in this case the character '+'