From ecb3b052af696b8c0a0480dfe0eb9c47aff6c050 Mon Sep 17 00:00:00 2001 From: localhorst Date: Tue, 25 Jul 2023 20:50:42 +0200 Subject: [PATCH] add flush --- extract_photos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extract_photos.py b/extract_photos.py index 883bd3e..8e2c5d3 100644 --- a/extract_photos.py +++ b/extract_photos.py @@ -134,6 +134,7 @@ def main(): for path in os.listdir(source_dir_path): if os.path.isfile(os.path.join(source_dir_path, path)): print("Found scan: " + str(os.path.join(source_dir_path, path)), end=" ") + sys.stdout.flush() try: auto_crop_scan(os.path.join(source_dir_path, path), tmp_dir_path) convert_to_avif(tmp_dir_path, destination_dir_path)