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