For debug, cleanup cropped dir

This commit is contained in:
henriquenakashima 2023-07-10 14:34:21 -04:00
parent 48fc431162
commit f5175918b6

View file

@ -40,6 +40,8 @@ def gather_cropped_cards() -> List[Path]:
def get_inputs_without_crop(all_inputs: List[Path], already_cropped: List[Path]) -> List[Path]: def get_inputs_without_crop(all_inputs: List[Path], already_cropped: List[Path]) -> List[Path]:
# For debug, always crop # For debug, always crop
for existing_crop in already_cropped:
existing_crop.unlink()
return all_inputs return all_inputs
already_cropped_set = set(already_cropped) already_cropped_set = set(already_cropped)