From 09dc88a1f648c0c1c353f83fc6c52299fa5b9890 Mon Sep 17 00:00:00 2001 From: Stephen Kerr Date: Sat, 25 Mar 2023 15:12:41 +0100 Subject: [PATCH] forgot to put this back to normal --- web/generate-booklet.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/generate-booklet.py b/web/generate-booklet.py index eccae94..2f337f3 100644 --- a/web/generate-booklet.py +++ b/web/generate-booklet.py @@ -52,12 +52,12 @@ for folder in folders: print("html has been generated!") all_html.append(html_data) - # elif file.endswith((".jpg",".png",".jpeg",".jfif",".bmp")): - # print("image found yay",file) - # output_file=file.replace(folder,"./00-booklet") - # copy_command=f"cp {file} {output_file}" - # os.system(copy_command) - # print("copied to booklet!",copy_command) + elif file.endswith((".jpg",".png",".jpeg",".jfif",".bmp")): + print("image found yay",file) + output_file=file.replace(folder,"./00-booklet") + copy_command=f"cp {file} {output_file}" + os.system(copy_command) + print("copied to booklet!",copy_command) #html to template environment