Skip to content

Commit

Permalink
Update compare_images.py
Browse files Browse the repository at this point in the history
fixed path for checking amount of images, '*.jpg' included, which is not part of file path.
  • Loading branch information
T9Air committed Jul 5, 2024
1 parent 86a1e81 commit f9b0041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compare_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def choose_images():

# REPLACE "USER" WITH YOUR USERNAME
# Check if there are at least two images
if len(os.listdir('/home/USER/klipper-camera-watchdog/Image-files/*.jpg')) > 1:
if len(os.listdir('/home/USER/klipper-camera-watchdog/Image-files/')) > 1:
# Sort image paths by creation time (newest first)
image_paths = sorted(glob.glob('/home/USER/klipper-camera-watchdog/Image-files/*.jpg'), key=os.path.getctime, reverse=True)

Expand Down

0 comments on commit f9b0041

Please sign in to comment.