From f6a5d41dfee7e883771e33af8415de06021b16f0 Mon Sep 17 00:00:00 2001 From: jlw4049 Date: Fri, 8 Mar 2024 14:52:08 -0500 Subject: [PATCH] fix: need to be sure that these are both Path objects --- frame_forge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frame_forge/__init__.py b/frame_forge/__init__.py index f2f5475..85553ed 100644 --- a/frame_forge/__init__.py +++ b/frame_forge/__init__.py @@ -639,9 +639,13 @@ class GenerateImages: self.source_index_path = source_path_obj.parent / Path( f"{source_path_obj.stem}{indexer_ext}" ) + else: + self.source_index_path = Path(self.source_index_path) if not self.encode_index_path or not Path(self.encode_index_path).exists(): encode_path_obj = Path(self.source_file) self.encode_index_path = encode_path_obj.parent / Path( f"{encode_path_obj.stem}{indexer_ext}" ) + else: + self.encode_index_path = Path(self.encode_index_path)